/* --- GERAL E VARIÁVEIS --- */
:root {
    --primary-color: #004aad;
    --primary-dark: #003080;
    --primary-light: #1a5bb8;
    --secondary-color: #f9a825;
    --secondary-dark: #e6941a;
    --accent-color: #00c4a7;
    --text-color: #2c3e50;
    --text-light: #5a6c7d;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --white-color: #ffffff;
    --dark-text: #1a202c;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--white-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark-text);
    margin-bottom: 60px;
    font-weight: 700;
    letter-spacing: -0.025em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* --- HEADER E NAVEGAÇÃO --- */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white-color);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 74, 173, 0.15);
    backdrop-filter: blur(10px);
}

.navbar {
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    opacity: 0;
    transition: var(--transition);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 50%, var(--light-gray) 100%);
    padding: 140px 0 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23004aad" fill-opacity="0.03"><circle cx="30" cy="30" r="2"/></g></svg>');
    opacity: 0.5;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--dark-text);
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-light);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
    font-size: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 74, 173, 0.4);
}

.btn-secondary {
    background: var(--white-color);
    color: var(--primary-color);
    border-color: var(--medium-gray);
    box-shadow: var(--box-shadow);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 74, 173, 0.2);
}

/* --- SEÇÕES GERAIS --- */
section {
    padding: 100px 0;
    position: relative;
}

#servicos, #desempenho {
    background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 100%);
}

/* --- SERVIÇOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white-color);
    padding: 40px 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    border: 1px solid var(--medium-gray);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: block;
}

.service-card h3 {
    color: var(--dark-text);
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
}

/* --- GRÁFICOS --- */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.chart-container {
    background: var(--white-color);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--medium-gray);
    transition: var(--transition);
}

.chart-container:hover {
    box-shadow: var(--box-shadow-lg);
}

.chart-container h3 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1.2rem;
}

/* --- ANÁLISE --- */
.analysis-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.analysis-text h3 {
    font-size: 2rem;
    color: var(--dark-text);
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.analysis-text p {
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
}

.analysis-text ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 24px;
}

.analysis-text ul li {
    padding: 12px 0 12px 40px;
    position: relative;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
}

.analysis-text ul li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analysis-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.big-stat {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white-color);
    padding: 32px 24px;
    text-align: center;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.big-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.big-stat:hover::before {
    transform: translateX(100%);
}

.big-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
}

.big-stat .number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.big-stat .label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

/* --- CONTATO --- */
#contato {
    background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--white-color);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    border: 1px solid var(--medium-gray);
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 24px;
    font-weight: 700;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-item {
    margin-top: 24px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.contact-item strong {
    color: var(--dark-text);
    display: block;
    margin-bottom: 8px;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-dark);
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white-color);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* --- FOOTER --- */
.footer {
    background: linear-gradient(135deg, var(--dark-text) 0%, #1a202c 100%);
    color: #a0aec0;
    padding: 80px 0 32px 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    color: var(--white-color);
    margin-bottom: 24px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p,
.footer-section ul li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-logo .logo {
    height: 40px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2d3748;
    padding-top: 32px;
    color: #718096;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .charts-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .analysis-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        flex-direction: column;
        padding: 24px 0;
        box-shadow: var(--box-shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 16px;
    }

    .nav-toggle {
        display: block;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 120px 0 80px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .analysis-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        padding: 32px 24px;
    }
    
    .footer-content {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 100px 0 60px 0;
    }
    
    .service-card,
    .chart-container {
        padding: 24px 20px;
    }
    
    .contact-content {
        padding: 24px 20px;
    }
    
    .big-stat {
        padding: 24px 20px;
    }
    
    .big-stat .number {
        font-size: 2.2rem;
    }
}

/* --- ANIMAÇÕES E EFEITOS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.chart-container,
.big-stat {
    animation: fadeInUp 0.6s ease-out;
}

/* --- MELHORIAS DE ACESSIBILIDADE --- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- ESTADOS DE FOCO MELHORADOS --- */
.btn:focus,
.nav-link:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* --- LOADING STATES --- */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled::before {
    display: none;
}



/* --- ESTILOS PARA O MAPA INTERATIVO --- */
#dados-uf .coluna-mapa {
    flex: 1;
    min-width: 300px;
}

#dados-uf .mapa-wrapper {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-lg);
    padding: 32px;
    height: 100%;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

#dados-uf .mapa-wrapper:hover {
    box-shadow: var(--box-shadow-lg);
}

#dados-uf .mapa-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

#dados-uf .mapa-container svg {
    max-width: 100%;
    height: auto;
    width: 400px;
}

/* Estilos para os estados do mapa */
.estado-interativo {
    fill: var(--primary-color);
    stroke: #ffffff;
    stroke-width: 1;
    cursor: pointer;
    transition: var(--transition);
}

.estado-interativo:hover {
    fill: var(--primary-light) !important;
    stroke: var(--primary-dark) !important;
    stroke-width: 2 !important;
    filter: drop-shadow(0 4px 8px rgba(0, 74, 173, 0.3));
}

/* Tooltip do mapa */
#mapa-tooltip {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* --- MELHORIAS GERAIS DE DESIGN --- */

/* Gradientes mais suaves */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

/* Animações mais fluidas */
.service-card, .chart-container, .big-stat, .mapa-wrapper {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects melhorados */
.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 74, 173, 0.25);
}

.big-stat:hover {
    transform: translateY(-6px) scale(1.05);
}

/* Botões com efeitos mais modernos */
.btn {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Melhorias no formulário */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 74, 173, 0.1);
    transform: translateY(-2px);
}

/* Micro-interações */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Melhorias na tipografia */
.section-title {
    background: linear-gradient(135deg, var(--dark-text), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Efeitos de parallax sutil */
.hero::before {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Melhorias na responsividade do mapa */
@media (max-width: 768px) {
    #dados-uf .dados-flex-box {
        flex-direction: column;
        gap: 30px;
    }
    
    #dados-uf .mapa-container svg {
        width: 100%;
        max-width: 350px;
    }
    
    #dados-uf .mapa-wrapper {
        padding: 24px;
    }
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states melhorados */
.estado-interativo:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.btn:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Loading states */
.mapa-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.mapa-container.loading::after {
    content: 'Carregando mapa...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-size: 14px;
}

