/* Estilos Base do Site */
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; background-color: #f4f6f8; color: #333; font-display: swap; }
* { box-sizing: border-box; }

.top-bar { background-color: #f1f1f1; padding: 8px 20px; font-size: 13px; color: #555; text-align: right; border-bottom: 1px solid #e0e0e0; }
.top-bar strong { color: #002b5e; }

header { background-color: #ffffff; padding: 30px 20px; border-bottom: 1px solid #eee; }
.header-container { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 30px; }
.main-logo { height: 110px; object-fit: contain; border-radius: 8px; }
.header-text { text-align: center; }
.header-text h1 { margin: 0; font-size: 28px; color: #002b5e; text-transform: uppercase; letter-spacing: 1px; }
.header-text p { margin: 8px 0 0 0; font-size: 16px; color: #666; font-weight: bold; letter-spacing: 2px; }

/* Menu Padrão Oficial + STICKY */
.navbar { background-color: #002b5e; box-shadow: 0 4px 6px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 999; }
.menu-toggle { display: none; background-color: #002b5e; color: #d4af37; padding: 15px 20px; text-align: center; cursor: pointer; font-size: 16px; font-weight: bold; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.1); }
.menu-toggle i { margin-right: 8px; }
.navbar ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: flex; justify-content: center; flex-wrap: wrap; }
.navbar li { border-right: 1px solid rgba(255,255,255,0.1); position: relative; }
.navbar li:last-child { border-right: none; }
.navbar a { display: block; color: white; text-decoration: none; padding: 16px 15px; font-size: 13px; font-weight: bold; transition: 0.3s; text-transform: uppercase; }
.navbar a:hover { background-color: #d4af37; color: #002b5e; }

/* Sub-menu (Dropdown) */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
.navbar .dropdown { visibility: hidden; opacity: 0; position: absolute; top: 100%; left: 0; background-color: #ffffff; min-width: 290px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); z-index: 1000; border-radius: 0 0 8px 8px; transition: all 0.3s ease; padding: 10px 0; display: flex; flex-direction: column; }
.navbar li.dropdown-parent:hover .dropdown { visibility: visible; opacity: 1; }
.navbar .dropdown li { border: none; width: 100%; }
.navbar .dropdown a { padding: 12px 20px; color: #002b5e; background-color: transparent; text-transform: none; font-size: 14px; font-weight: bold; border-bottom: 1px solid #f1f5f9; }
.navbar .dropdown a:hover { background-color: #f4f6f8; color: #d4af37; padding-left: 25px; }

#simulador, #checklist, #tabela, #modelos, #tabela-procuracoes, #outros-servicos, #o-que-sao, #documentos, #tabela-rc, #documentos-rc, #o-que-e, #beneficios, #emita-certificado { scroll-margin-top: 120px; }

/* Componentes Comuns (Banners, Cards, Formulários) */
.hero-banner { background: linear-gradient(rgba(0, 43, 94, 0.80), rgba(0, 43, 94, 0.80)), url('Foto.webp') no-repeat center center; background-size: cover; text-align: center; padding: 90px 20px; color: white; margin-bottom: 40px; }
.hero-banner h2 { font-size: 38px; margin: 0 0 15px 0; font-weight: normal; letter-spacing: 1px; }
.hero-banner h2 strong { color: #d4af37; font-weight: bold; }
.hero-banner p { font-size: 18px; margin: 0; color: #e2e8f0; }

.main-container { max-width: 900px; margin: 0 auto 40px auto; padding: 0 20px; }
.page-container { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.section-title, .page-title { text-align: center; color: #002b5e; margin-bottom: 30px; font-size: 28px; }
.page-title { border-bottom: 2px solid #d4af37; display: inline-block; padding-bottom: 10px; margin-bottom: 40px; font-size: 32px; }
.title-wrapper { text-align: center; }
.section-subtitle { color: #002b5e; font-size: 24px; margin: 40px 0 20px 0; border-left: 5px solid #d4af37; padding-left: 15px; }

.servicos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 50px; }
.card { background: white; padding: 30px; border-radius: 8px; text-align: center; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border-bottom: 4px solid transparent; }
.card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0, 43, 94, 0.1); border-bottom: 4px solid #d4af37; }
.card h3 { color: #002b5e; margin-top: 0; font-size: 22px; }
.card p { color: #555; font-size: 15px; }

.simulador-box { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid #002b5e; margin-bottom: 50px;}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: #002b5e; font-size: 14px; text-transform: uppercase; }
input[type="text"], select.form-control, input[type="number"], .form-control { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; transition: border-color 0.3s; box-sizing: border-box; font-family: inherit; }
input[type="text"]:focus, select.form-control:focus, input[type="number"]:focus, .form-control:focus { outline: none; border-color: #d4af37; }
.btn-calcular { width: 100%; background-color: #d4af37; color: #002b5e; border: none; padding: 15px; font-size: 18px; font-weight: bold; border-radius: 4px; cursor: pointer; transition: 0.3s; text-transform: uppercase; margin-top: 10px; }
.btn-calcular:hover { background-color: #b5952f; color: white; }
.avisos-box { background-color: #f8f9fa; border-left: 4px solid #002b5e; padding: 15px; font-size: 13px; color: #555; margin-bottom: 20px; border-radius: 0 4px 4px 0; }
.resultado-box { display: none; margin-top: 30px; background-color: #f1f5f9; padding: 20px; border-radius: 8px; border: 1px solid #e2e8f0; }
.btn-whatsapp { display: block; width: 100%; text-align: center; background-color: #25D366; color: white; padding: 15px; text-decoration: none; border-radius: 6px; font-weight: bold; font-size: 16px; margin-top: 20px; transition: 0.3s; }
.btn-whatsapp:hover { background-color: #128C7E; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.info-section { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid #002b5e; display: flex; flex-direction: column; }
.info-section h3 { color: #002b5e; margin-top: 0; font-size: 20px; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.info-section h4 { color: #d4af37; margin: 15px 0 5px 0; font-size: 16px; }
.info-section ul { padding-left: 20px; color: #555; margin-top: 5px; flex-grow: 1; }
.info-section li { margin-bottom: 8px; line-height: 1.5; font-size: 14px; }
.btn-download-pdf { margin-top: 20px; background: #f1f5f9; color: #002b5e; border: 1px solid #002b5e; padding: 10px 15px; border-radius: 4px; cursor: pointer; font-weight: bold; width: 100%; transition: 0.3s; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-download-pdf:hover { background: #002b5e; color: white; }

.whatsapp-cta-top { text-align: center; margin-top: -15px; margin-bottom: 40px; }
.btn-whatsapp-large { display: inline-block; background-color: #25D366; color: white; padding: 15px 35px; text-decoration: none; border-radius: 6px; font-weight: bold; font-size: 18px; transition: 0.3s; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); }
.btn-whatsapp-large:hover { background-color: #128C7E; transform: translateY(-2px); }

/* Institucional */
.institucional-box { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid #002b5e; margin-bottom: 40px; line-height: 1.8; font-size: 16px; color: #555; }
.institucional-box p { margin-bottom: 20px; }
.institucional-box p:last-child { margin-bottom: 0; }
.institucional-box strong { color: #002b5e; }
.fotos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
.foto-placeholder { background-color: #f8fafc; border: 2px dashed #cbd5e1; border-radius: 8px; height: 250px; display: flex; align-items: center; justify-content: center; color: #64748b; font-weight: bold; flex-direction: column; transition: all 0.3s ease; }
.foto-placeholder:hover { border-color: #94a3b8; background-color: #f1f5f9; }
.foto-placeholder i { font-size: 40px; margin-bottom: 10px; color: #94a3b8; }

footer { background-color: #1a1a1a; color: #ccc; text-align: center; padding: 30px 20px; margin-top: 60px; font-size: 14px; }

/* Cookies */
#cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #002b5e; color: white; padding: 15px 20px; text-align: center; font-size: 14px; z-index: 9999; display: none; box-shadow: 0 -2px 10px rgba(0,0,0,0.2); }
#cookie-banner p { margin: 0 0 10px 0; display: inline-block; padding-right: 15px; }
#cookie-banner a { color: #d4af37; text-decoration: underline; }
#btn-aceitar-cookies { background-color: #d4af37; color: #002b5e; border: none; padding: 8px 20px; font-weight: bold; border-radius: 4px; cursor: pointer; transition: 0.3s; }
#btn-aceitar-cookies:hover { background-color: #b5952f; color: white; }

/* Tabela de Preços (Firmas e Autenticações) */
.tabela-precos { width: 100%; border-collapse: collapse; margin-bottom: 50px; background-color: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.tabela-precos th { background-color: #002b5e; color: white; text-align: left; padding: 15px 20px; font-weight: bold; text-transform: uppercase; font-size: 14px; }
.tabela-precos th.right { text-align: right; }
.tabela-precos td { padding: 15px 20px; border-bottom: 1px solid #eee; color: #555; font-size: 14px; }
.tabela-precos tr:last-child td { border-bottom: none; }
.tabela-precos tr:nth-child(even) { background-color: #f8fafc; }
.tabela-precos .valor-celula { text-align: right; font-weight: bold; color: #002b5e; }

/* Modelos de Declarações */
.section-desc { text-align: center; color: #666; margin-bottom: 40px; font-size: 15px; }
.downloads-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px; margin-bottom: 50px; }
.download-card { background: white; padding: 20px; border-radius: 8px; border: 1px solid #eee; border-left: 4px solid #d4af37; box-shadow: 0 4px 10px rgba(0,0,0,0.02); display: flex; align-items: center; justify-content: space-between; transition: 0.3s; }
.download-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.05); border-color: #e2e8f0; border-left: 4px solid #002b5e; }
.doc-info { display: flex; align-items: center; gap: 15px; }
.doc-icon { font-size: 24px; color: #555; }
.doc-name { font-size: 14px; font-weight: bold; color: #002b5e; line-height: 1.4; text-transform: uppercase; }
.btn-download { background-color: #f1f5f9; color: #002b5e; font-weight: bold; padding: 10px 15px; border-radius: 4px; text-decoration: none; font-size: 13px; transition: 0.3s; white-space: nowrap; }
.btn-download:hover { background-color: #002b5e; color: white; }

/* WhatsApp CTA (Específico) */
.whatsapp-cta { background-color: #f8fafc; padding: 40px; border-radius: 8px; text-align: center; margin-bottom: 40px; }
.whatsapp-cta h4 { color: #555; font-size: 18px; margin-top: 0; margin-bottom: 20px; font-weight: normal; }

/* e-Notariado */
.enotariado-container { max-width: 1000px; margin: 40px auto; padding: 0 20px; }

.intro-section { display: flex; gap: 40px; align-items: center; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 50px; }
.intro-text { flex: 1; }
.intro-text h3 { color: #002b5e; font-size: 24px; margin-top: 0; margin-bottom: 20px; }
.intro-text p { font-size: 16px; color: #555; line-height: 1.6; margin-bottom: 15px; }
.intro-image { flex: 1; text-align: center; }
.intro-image img { max-width: 100%; border-radius: 8px; }

.beneficios-title { text-align: center; color: #002b5e; font-size: 28px; margin-bottom: 30px; }
.beneficios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 50px; }
.beneficio-card { background: white; padding: 30px 20px; text-align: center; border-radius: 8px; border-top: 4px solid #d4af37; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: 0.3s; }
.beneficio-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.beneficio-card .icon { font-size: 32px; color: #333; margin-bottom: 15px; display: block; }
.beneficio-card h4 { color: #002b5e; font-size: 18px; margin-bottom: 10px; margin-top: 0; }
.beneficio-card p { color: #555; font-size: 14px; margin: 0; }

.emissao-section { background: white; padding: 40px; border-radius: 8px; border-top: 4px solid #002b5e; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 50px; }
.emissao-section h3 { text-align: center; color: #002b5e; font-size: 24px; margin-top: 0; margin-bottom: 40px; }

.timeline { list-style: none; padding: 0; margin: 0 0 40px 0; border-left: 2px solid #eee; margin-left: 20px; padding-left: 30px; }
.timeline-step { position: relative; margin-bottom: 30px; }
.timeline-step:last-child { margin-bottom: 0; }
.timeline-step .circle { position: absolute; left: -46px; top: -2px; width: 30px; height: 30px; background: #002b5e; color: white; border-radius: 50%; text-align: center; line-height: 30px; font-weight: bold; font-size: 14px; }
.timeline-step h4 { margin: 0 0 5px 0; color: #002b5e; font-size: 18px; }
.timeline-step p { margin: 0; color: #555; font-size: 14px; }

.agendamento-box { text-align: center; margin-top: 30px; }
.agendamento-box h4 { color: #555; font-size: 18px; margin-bottom: 15px; font-weight: normal; margin-top: 0; }
.agendamento-box .btn-whatsapp { display: inline-block; width: auto; padding: 15px 30px; margin-top: 0; }

.map-section { text-align: center; background: white; padding: 40px; border-radius: 8px; border-top: 4px solid #002b5e; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.map-section h2 { color: #002b5e; font-size: 24px; margin-bottom: 10px; margin-top: 0; }
.map-container { border-radius: 8px; overflow: hidden; height: 350px; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* Contato e Localização */
.contato-container { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 60px; }
.contact-card { background: white; padding: 40px 20px; text-align: center; border-radius: 8px; border-top: 4px solid #d4af37; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-top: 4px solid #002b5e; }
.contact-card .icon { font-size: 40px; color: #333; margin-bottom: 20px; display: block; }
.contact-card h3 { color: #002b5e; font-size: 18px; margin-bottom: 15px; margin-top: 0; text-transform: uppercase; }
.contact-card a { color: #555; text-decoration: none; font-size: 16px; transition: 0.3s; }
.contact-card a:hover { color: #d4af37; }
.contact-card .link-destaque { font-weight: bold; font-size: 18px; color: #25D366; }

/* Registro Civil Específico */
.aviso-gratuidade { background-color: #fdf5e6; border-left: 4px solid #f0ad4e; padding: 15px; font-size: 14px; color: #555; margin-bottom: 40px; border-radius: 0 4px 4px 0; }

/* ========================================================
   MODO MOBILE (Responsivo e Usabilidade Melhorada)
   ======================================================== */
@media (max-width: 900px) {
    .top-bar { text-align: center; font-size: 12px; padding: 10px; line-height: 1.5; }
    
    .header-container { flex-direction: column; text-align: center; gap: 15px; padding-bottom: 15px; }
    .header-text h1 { font-size: 22px; }
    .header-text p { font-size: 14px; }

    /* Exibe o botão Menu Hambúrguer */
    .menu-toggle { display: block; }
    
    /* Esconde a lista de links por padrão no mobile */
    .navbar ul { display: none; flex-direction: column; width: 100%; }
    
    /* Quando o menu estiver ativo, ele mostra como coluna */
    .navbar ul.active { display: flex; }
    
    .navbar li { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; }
    .navbar a { text-align: left; padding: 15px 20px; font-size: 14px; }
    
    /* Dropdown no mobile deve expandir para baixo em vez de posição absoluta */
    .navbar .dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        padding: 0;
        min-width: 100%;
        background-color: #053b75;
    }
    
    /* Sub-menu visível sempre que a ul principal estiver ativa no mobile */
    .navbar ul.active .dropdown { display: flex; }
    
    .navbar .dropdown a { color: #e2e8f0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-left: 30px; }
    .navbar .dropdown a:hover { background-color: #064d99; color: white; }
    
    /* Hero Banner Text */
    .hero-banner { padding: 60px 15px; }
    .hero-banner h2 { font-size: 26px; } /* Evita que Inovação quebre errado */
    .hero-banner p { font-size: 15px; }

    .institucional-box, .info-section, .simulador-box, .card { padding: 20px; }
    
    .info-grid { grid-template-columns: 1fr; }
    #check-inventario { grid-column: span 1 !important; }
    #check-inventario > div { grid-template-columns: 1fr !important; }

    #cookie-banner p { display: block; padding-right: 0; }
    
    .downloads-grid { grid-template-columns: 1fr; }
    .download-card { flex-direction: column; text-align: center; gap: 15px; }
    .doc-info { flex-direction: column; gap: 10px; }
    
    .intro-section { flex-direction: column; gap: 20px; padding: 20px; }
    .emissao-section, .map-section { padding: 20px; }
    .timeline { margin-left: 10px; padding-left: 20px; }
    .timeline-step .circle { left: -36px; width: 28px; height: 28px; line-height: 28px; }
    .contact-grid { grid-template-columns: 1fr; }
}
