/*
 * ARQUIVO CSS FINAL E COMPLETO - v3.0
 * Contém todos os estilos para index.html, profissional.html, sucesso.html, erro.html
 * Inclui revisão de consistência, interatividade e responsividade.
 */

/* --- 01. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2b2b2b;
    --accent-color: #D4AF37;
    --text-color-light: #f5f5f5;
    --text-color-dark: #1a1a1a;
    --text-color-muted: #a0a0a0;
    --background-light: #ffffff;
    --font-primary: 'Roboto Slab', serif;
    --font-secondary: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-secondary);
    background-color: var(--background-light);
    color: var(--text-color-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
a, button { transition: all 0.3s ease; }

/* --- 02. ANIMAÇÃO --- */
.fade-in-section { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }

/* --- 03. NAVEGAÇÃO --- */
.main-nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background-color: rgba(26, 26, 26, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #444; }
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.nav-logo img { height: 60px; width: auto; display: block; }
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 2.5rem; }
.nav-links a { color: var(--text-color-muted); text-decoration: none; font-weight: 500; letter-spacing: 0.5px; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-color); }
a.nav-contact-button { background-color: var(--accent-color); color: var(--primary-color); padding: 8px 18px; border-radius: 5px; font-weight: 700; }
a.nav-contact-button:hover { background-color: #e6c65d; transform: translateY(-2px); }
.menu-hamburger { display: none; cursor: pointer; }
.menu-hamburger .line { width: 25px; height: 3px; background-color: var(--text-color-light); margin: 5px 0; transition: all 0.3s ease; }

/* --- 04. SEÇÃO HERO --- */
.hero-section { height: 95vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-color-light); position: relative; background-image: url('img/hero2-bg.jpg'); background-size: cover; background-position: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 90%; height: 100%; background: linear-gradient(to top, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 1rem; }
.main-title { font-family: var(--font-primary); font-size: 3.8rem; margin-bottom: 1rem; font-weight: 700; }
.subtitle { font-size: 1.2rem; font-weight: 300; margin-bottom: 2.5rem; max-width: 80%; margin-left: auto; margin-right: auto; color: var(--text-color-muted); }
.cta-button { display: inline-block; padding: 15px 40px; background-color: var(--accent-color); color: var(--primary-color); text-decoration: none; font-weight: 700; border-radius: 5px; border: none; cursor: pointer; font-size: 1.1rem; letter-spacing: 1px; }
.cta-button:hover { background-color: #e6c65d; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2); }

/* --- 05. ESTRUTURA DAS SEÇÕES --- */
section { padding: 100px 0; }
.section-title { font-family: var(--font-primary); font-size: 2.8rem; text-align: center; margin-bottom: 5rem; font-weight: 700; }
.section-subtitle { text-align: center; max-width: 600px; margin: -4rem auto 4rem; color: #555; }
.section-dark { background-color: var(--primary-color); color: var(--text-color-light); }
.section-light { background-color: var(--background-light); color: var(--text-color-dark); }
.section-dark .section-title, .section-dark .section-subtitle { color: var(--text-color-light); }
.section-light .section-title { color: var(--text-color-dark); }
.section-dark .contact-subtitle, .section-dark .section-subtitle { color: var(--text-color-muted); }

/* --- 06. SEÇÃO SOBRE NÓS --- */
.who-we-are-container { display: flex; align-items: center; gap: 5rem; }
.who-we-are-text { flex: 1.2; }
.who-we-are-text .section-title { text-align: left; }
.who-we-are-text p { margin-bottom: 1.5rem; font-size: 1.1rem; line-height: 1.8; color: #333; }
.who-we-are-image { flex: 1; }
.who-we-are-image img { width: 100%; border-radius: 5px; }

/* --- 07. SEÇÃO SOLUÇÕES --- */
.solucoes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.solucao-card { background-color: var(--secondary-color); padding: 2.5rem; border-radius: 5px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; border: 1px solid #444; }
.solucao-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.solucao-card .icon { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--accent-color); }
.solucao-card .icon h3 { display: inline; margin-left: 1rem; vertical-align: middle; font-family: var(--font-primary); font-size: 1.5rem; color: var(--text-color-light); }
.solucao-card p { color: var(--text-color-muted); flex-grow: 1; }
.read-more-btn, .read-more-btn-light { background: none; border: 1px solid var(--accent-color); color: var(--accent-color); padding: 10px 20px; border-radius: 5px; cursor: pointer; margin-top: 1.5rem; font-weight: 500; text-decoration: none; display: inline-block; font-family: var(--font-secondary); }
.read-more-btn, .read-more-btn { background: none; border: 1px solid var(--accent-color); color: var(--accent-color); padding: 10px 20px; border-radius: 5px; cursor: pointer; margin-top: 1.5rem; font-weight: 500; text-decoration: none; display: inline-block; font-family: var(--font-secondary); }
.read-more-btn:hover { background-color: var(--accent-color); color: var(--primary-color); }

/* --- 08. SEÇÃO EQUIPE --- */
.equipe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.equipe-card { text-align: center; display: flex; flex-direction: column; }
.equipe-card img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; margin-bottom: 1.5rem; filter: grayscale(100%); transition: filter 0.3s; align-self: center; }
.equipe-card:hover img { filter: grayscale(0%); }
.equipe-card h4 { font-family: var(--font-primary); font-size: 1.4rem; color: var(--text-color-dark); }
.equipe-card p { color: #555; font-weight: 500; margin-bottom: 1.5rem; flex-grow: 1; }
.specialist-contact { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.social-icon { color: var(--text-color-dark); font-size: 1.5rem; transition: color 0.3s, transform 0.3s; }
.social-icon:hover { color: var(--accent-color); transform: scale(1.1); }
.read-more-btn-light { border-color: var(--text-color-dark); color: var(--text-color-dark); }
.read-more-btn-light:hover { background-color: var(--text-color-dark); color: var(--background-light); }

/* --- 09. SEÇÃO CONTATO --- */
.contato-form { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-color-muted); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 1rem; border: 1px solid #444; border-radius: 5px; font-family: var(--font-secondary); font-size: 1rem; transition: border-color 0.3s, background-color 0.3s; background-color: var(--secondary-color); color: var(--text-color-light); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent-color); background-color: #404040; }
.form-group-checkbox { display: flex; align-items: center; margin-top: 1rem; margin-bottom: 2rem; }
.form-group-checkbox input { margin-right: 0.75rem; width: auto; flex-shrink: 0; }
.form-group-checkbox label { font-size: 0.9rem; color: var(--text-color-muted); }
.form-button { width: 100%; }
.error-message { color: #ff6b6b; font-size: 0.85rem; margin-top: 0.25rem; display: none; }
input.invalid, select.invalid, textarea.invalid { border-color: #ff6b6b; }

/* --- 10. SEÇÃO ARTIGOS --- */
.artigos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.artigo-card { background: var(--background-light); border-radius: 5px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.08); transition: all 0.3s; display: flex; flex-direction: column; border: 1px solid #eee; }
.artigo-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.artigo-card img { width: 100%; height: 200px; object-fit: cover; }
.artigo-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.artigo-tag { display: inline-block; background-color: var(--accent-color); color: var(--primary-color); padding: 5px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; margin-bottom: 1rem; align-self: flex-start; text-transform: uppercase; }
.artigo-content h3 { font-family: var(--font-primary); font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--text-color-dark); line-height: 1.4; }
.artigo-content p { color: #555; flex-grow: 1; margin-bottom: 1.5rem; }
.artigo-card .read-more-btn-light { align-self: flex-start; }

/* --- 11. SEÇÃO LOCALIZAÇÃO --- */
.localizacao-wrapper { display: flex; gap: 4rem; align-items: center; }
.localizacao-info { flex: 1; }
.localizacao-info h3 { font-family: var(--font-primary); font-size: 2rem; color: var(--text-color-light); margin-bottom: 2rem; }
.localizacao-info p { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; font-size: 1.1rem; color: var(--text-color-muted); }
.localizacao-info i { color: var(--accent-color); font-size: 1.2rem; margin-top: 5px; }
.localizacao-map { flex: 1.5; border-radius: 5px; overflow: hidden; }
.localizacao-map iframe { width: 100%; height: 400px; border: 0; filter: grayscale(1) invert(0.9) contrast(0.9); }

/* --- 12. RODAPÉ --- */
.main-footer { background-color: var(--primary-color); color: var(--text-color-muted); padding: 40px 0; border-top: 1px solid #444; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-social-links a { color: var(--text-color-muted); text-decoration: none; margin-left: 1.5rem; font-size: 1.25rem; }
.footer-social-links a:hover { color: var(--accent-color); }

/* --- 13. ELEMENTOS GLOBAIS (MODAL, WHATSAPP) --- */
.whatsapp-float { position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px; background-color: #25D366; color: #FFF; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; z-index: 999; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.whatsapp-float:hover { transform: scale(1.1); }
.modal-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); padding: 1rem; }
.modal-container.is-visible { opacity: 1; visibility: visible; }
.modal-content { background: var(--background-light); color: var(--text-color-dark); padding: 2.5rem; border-radius: 5px; max-width: 700px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; transform: scale(0.9); transition: transform 0.3s; }
.modal-container.is-visible .modal-content { transform: scale(1); }
.modal-close-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 2.5rem; color: #aaa; cursor: pointer; line-height: 1; }
.modal-close-btn:hover { color: var(--text-color-dark); }
#modal-title { font-family: var(--font-primary); font-size: 2rem; margin-bottom: 1.5rem; }
#modal-text { margin-bottom: 2rem; line-height: 1.8; }
#modal-contact-button-container .cta-button { font-size: 1rem; padding: 12px 25px; }

/* --- 14. PÁGINA PROFISSIONAL --- */
#professional-hero { padding: 150px 0 80px; }
.professional-hero-content { display: flex; align-items: center; gap: 4rem; }
.professional-photo { flex-shrink: 0; }
.professional-photo img { width: 250px; height: 250px; border-radius: 50%; object-fit: cover; border: 5px solid var(--accent-color); }
.professional-info h1 { font-family: var(--font-primary); font-size: 3.5rem; font-weight: 700; color: var(--text-color-light); margin-bottom: 0.5rem; }
.professional-title { font-size: 1.5rem; color: var(--accent-color); margin-bottom: 2rem; }
.specialist-contact-page a { color: var(--text-color-muted); font-size: 2rem; margin-right: 1.5rem; }
.specialist-contact-page a:hover { color: var(--accent-color); }
.bio-container { max-width: 800px; }
.bio-text { font-size: 1.1rem; line-height: 1.8; color: #333; }
.bio-text strong { color: var(--text-color-dark); }
#professional-cta { text-align: center; }
.cta-container h2 { font-family: var(--font-primary); font-size: 2.5rem; margin-bottom: 1rem; color: var(--text-color-light); }
.cta-container p { color: var(--text-color-muted); margin-bottom: 2rem; font-size: 1.2rem; }

/* --- 15. PÁGINAS DE CONFIRMAÇÃO --- */
.confirmation-container { display: flex; align-items: center; justify-content: center; min-height: 100vh; background-color: var(--primary-color); text-align: center; padding: 2rem; }
.confirmation-box { background: var(--secondary-color); padding: 3rem; border-radius: 5px; max-width: 600px; border: 1px solid #444; }
.confirmation-box h1 { font-family: var(--font-primary); color: var(--text-color-light); margin: 1.5rem 0; }
.confirmation-box p { color: var(--text-color-muted); margin-bottom: 2.5rem; line-height: 1.8; }
.confirmation-icon { font-size: 5rem; }
.confirmation-icon.success { color: #28a745; }
.confirmation-icon.error { color: #ff6b6b; }

/* --- 16. RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .main-title { font-size: 3rem; }
    .who-we-are-container { flex-direction: column-reverse; gap: 3rem; }
    .who-we-are-text .section-title { text-align: center; }
    .localizacao-wrapper { flex-direction: column; }
    .professional-hero-content { gap: 3rem; }
    .professional-info h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .nav-content { height: 70px; }
    .nav-logo img { height: 50px; }
    .nav-links { position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px); background-color: var(--primary-color); flex-direction: column; justify-content: center; align-items: center; transition: left 0.5s ease; }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 1.5rem 0; font-size: 1.2rem; }
    .menu-hamburger { display: block; }
    .menu-hamburger.active .line:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .menu-hamburger.active .line:nth-child(2) { opacity: 0; }
    .menu-hamburger.active .line:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
   
    section { padding: 80px 0; }
    .container { padding: 0 1.5rem; }
   
    .main-title { font-size: 2.5rem; }
    .subtitle { font-size: 1.1rem; max-width: 100%; }
   
    .section-title { font-size: 2.2rem; margin-bottom: 3rem; }
    .section-subtitle { margin: -2rem auto 3rem; }
    .who-we-are-text p { font-size: 1rem; }
   
    .solucoes-grid, .equipe-grid, .artigos-grid { grid-template-columns: 1fr; }
   
    .contato-form, .confirmation-box { padding: 2rem; }
   
    .localizacao-wrapper { gap: 2.5rem; }
    .localizacao-map iframe { height: 300px; }
   
    .footer-content { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-social-links a:first-child { margin-left: 0; }
   
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; right: 20px; }
   
    #modal-title { font-size: 1.5rem; }
    .modal-content { padding: 2rem 1.5rem; }

    .professional-hero-content { flex-direction: column; text-align: center; gap: 2rem; }
    .professional-info h1 { font-size: 2.5rem; }
    .professional-title { font-size: 1.2rem; }
    .professional-photo img { width: 200px; height: 200px; }
}

@media (max-width: 480px) {
    .main-title { font-size: 2.2rem; }
    .cta-button { padding: 12px 30px; font-size: 1rem; }
    .nav-logo { max-width: 150px; }
    .nav-logo img { height: 45px; }
    .professional-info h1 { font-size: 2rem; }
}

.nav-logo img {
    height: 60px; /* Altura corrigida para o logo */
    width: auto;
    display: block;
}