/* Variáveis Globais de CSS (Design Token System) */
:root {
    --primary: #102447;
    --primary-hover: #102447;
    --primary-light: #102447;
    --text-dark: #0F172A;
    --text-body: #FFFFFF;
    --text-light: #000000;
    --bg-main: #102447;
    --bg-alt: #F8FAFC;
    --bg-destaque: #D3AF37;
    --border-color: #E2E8F0;

    --header-height: 80px;
    --container-width: 1200px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial;
    color: var(--text-body);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilitários */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px 0 5px;
    width: 100%;
}

/* =========================================
   HEADER & NAVBAR (Sticky)
   ========================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #102447;
    backdrop-filter: blur(12px);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: left;
}

.logo-link img {
    height: 50px;
    /* Ajuste conforme necessário */
    width: auto;
}

/* Links Centrais */
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-body);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-fast);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Campo de Pesquisa */
.right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    font-size: 1.2rem;
}

.search-box input {
    padding: 10px 16px 10px 42px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    /* Arredondado estilo pílula */
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: all var(--transition-normal);
    width: 220px;
    background-color: var(--bg-alt);
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-box input:focus {
    width: 260px;
    border-color: var(--primary);
    background-color: var(--bg-main);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Menu Mobile Toggle */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.mobile-menu-btn:hover {
    color: #FFFFFF;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVIDADE MÓVEL)
   ========================================= */

@media screen and (max-width: 1024px) {
    .search-box input {
        width: 180px;
    }

    .search-box input:focus {
        width: 200px;
    }
}

@media screen and (max-width: 768px) {

    /* Header Mobile */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-main);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    }

    .nav-links-parceiro {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-destaque);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    }

    body.menu-open .nav-links {
        max-height: 1000px;
        padding: 12px 0;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }

    .search-box {
        display: none;
        /* Esconder pesquisa no mobile por simplicidade, ou mover para o menu */
    }

    .mobile-menu-btn {
        display: flex;
        color: #FFFFFF;
    }
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    background-color: var(--primary);
    /* Azul escuro principal */
    color: white;
    /* Texto em branco */
    font-family: Arial, sans-serif;
    /* Usando Arial conforme solicitado */
    padding-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

/* Coluna Logo */
.col-logo {
    max-width: 300px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    /* Fina linha de divisão vertical */
    padding-right: 40px;
}

.col-logo img.footer-logo {
    height: 50px;
    /* Ajuste conforme necessário */
    width: auto;
    margin-bottom: 24px;
}

.col-logo p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    /* Branco levemente suave */
}

/* Títulos das colunas */
.footer-col h3 {
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 24px;
    color: white;
}

/* Lista de Serviços */
.col-servicos ul {
    list-style: none;
    padding: 0;
}

.col-servicos li {
    margin-bottom: 16px;
}

.col-servicos a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.col-servicos a:hover {
    color: white;
    text-decoration: underline;
}

/* Lista de Contatos */
.contato-lista {
    list-style: none;
    padding: 0;
}

.contato-lista li {
    display: flex;
    align-items: flex-start;
    /* Alinha o ícone no topo do texto caso haja mais de uma linha */
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contato-lista i {
    font-size: 1.3rem;
    color: white;
    /* Ícones mais brilhantes e evidentes em branco sólido */
    margin-top: 2px;
    /* Ajuste sutil no vertical-align do ícone em relação ao texto */
}

.contato-lista a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.contato-lista a:hover {
    color: white;
    text-decoration: none;
}

/* Barra inferior (Copyright) */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    /* Fina linha de divisão horizontal */
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* Responsividade do Footer */
@media screen and (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 24px;
    }

    .footer-col {
        min-width: 100%;
        margin-bottom: 10px;
    }

    .col-logo {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-right: 0;
        padding-bottom: 30px;
        max-width: 100%;
        text-align: center;
    }

    .col-servicos,
    .col-contatos {
        padding-top: 10px;
    }
}

/* =========================================
   MODAL DE CONTATO
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-main);
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-body);
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--bg-destaque);
}

.modal-title {
    color: var(--bg-destaque);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-body);
    font-weight: 500;
}

.form-group input:not([type="checkbox"]) {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-alt);
    color: var(--text-dark);
}

.form-group input:focus {
    outline: none;
    border-color: var(--bg-destaque);
    box-shadow: 0 0 0 2px rgba(211, 175, 55, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.4;
}

.btn-submit {
    width: 100%;
    background-color: var(--bg-destaque);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-submit:hover {
    background-color: #e5c350;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-message {
    margin-bottom: 1rem;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    display: block;
    background-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid #22c55e;
}

.form-message.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid #ef4444;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 15px;
    transition: all var(--transition-normal);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp i {
    font-size: 1.4rem;
}

/* =========================================
   SEÇÃO: DOCUMENTOS
   ========================================= */

.documentos-section {
    padding: 80px 20px;
    background-color: var(--bg-alt, #F8FAFC);
    min-height: calc(100vh - 400px);
}

.container-documentos {
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.documentos-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 800;
}

.documentos-desc {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    margin-bottom: 50px;
    text-align: center;
    max-width: 650px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.documentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    justify-content: center;
    max-width: 900px;
}

.doc-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color, #E2E8F0);
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.doc-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.doc-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.4;
    flex-grow: 1;
}

.btn-download {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary);
    color: var(--text-body, #ffffff);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-download:hover {
    background-color: #0b1933;
    color: #ffffff;
}

/* Responsividade Mobile Documentos */
@media screen and (max-width: 768px) {
    .documentos-section {
        padding: 60px 15px;
    }

    .documentos-title {
        font-size: 2.2rem;
    }

    .documentos-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   BOTÃO FLUTUANTE DO WHATSAPP
   ========================================= */

.whatsapp-floating-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    background-color: #25D366;
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform var(--transition-normal, 0.3s ease), background-color var(--transition-normal, 0.3s ease), box-shadow var(--transition-normal, 0.3s ease);
}

.whatsapp-floating-btn:hover {
    background-color: #20ba5a;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    color: #FFFFFF;
}

.whatsapp-floating-btn i {
    font-size: 1.6rem;
}

/* Ajustes de responsividade para mobile */
@media screen and (max-width: 480px) {
    .whatsapp-floating-btn {
        bottom: 16px;
        left: 16px;
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .whatsapp-floating-btn i {
        font-size: 1.4rem;
    }
}
