/* Estilos gerais */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --dark-bg: #333;
    --header-height: 70px;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero section */
.hero {
    background-color: var(--primary-color);
    color: #fff;
    padding: 100px 0 50px;
    text-align: center;
    margin-top: var(--header-height);
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Cards */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-content {
    padding: 20px;
}

.card h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Proposta */
.proposta {
    max-width: 900px;
    margin: 0 auto;
}

.proposta h3 {
    font-family: 'Montserrat', sans-serif;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.proposta p {
    margin-bottom: 15px;
}

/* Tabelas */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.comparison-table th, .comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.comparison-table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
}

.comparison-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.comparison-table tr:hover {
    background-color: #f1f1f1;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-accent {
    background-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: #c0392b;
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #27ae60;
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 20px;
}

/* Gráficos */
.chart-container {
    width: 100%;
    height: 400px;
    margin: 30px 0;
    position: relative;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin: 5px 0;
}

/* Compartilhamento social */
.social-share {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s;
}

.social-share a:hover {
    transform: translateY(-3px);
}

.social-share .facebook {
    background-color: #3b5998;
}

.social-share .twitter {
    background-color: #1da1f2;
}

.social-share .whatsapp {
    background-color: #25d366;
}

.social-share .linkedin {
    background-color: #0077b5;
}

.social-share .email {
    background-color: #dd4b39;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background-color: #f9f9f9;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f1f1f1;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-answer.show {
    padding: 20px;
    max-height: 500px;
}

/* Infográficos */
.infographic {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.infographic-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.infographic-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.infographic-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 15px;
}

.infographic-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.infographic-label {
    font-size: 1rem;
    color: #666;
}

/* Responsividade */
@media (max-width: 992px) {
    .header-container {
        padding: 0 15px;
    }
    
    nav ul li {
        margin-left: 15px;
    }
    
    .chart-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 10px 0;
    }
    
    header {
        height: auto;
        position: relative;
    }
    
    .hero {
        margin-top: 0;
        padding: 50px 0 30px;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .cards {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 100%;
        max-width: 100%;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th, .comparison-table td {
        padding: 8px 10px;
    }
    
    .chart-container {
        height: 300px;
    }
    
    /* Tabela responsiva */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
    }
    
    .table-responsive table {
        min-width: 650px;
    }
    
    /* Menu mobile */
    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 50px;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-table th, .comparison-table td {
        padding: 6px 8px;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .social-share {
        flex-wrap: wrap;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --secondary-color: #008800;
        --accent-color: #cc0000;
        --text-color: #000000;
        --light-bg: #ffffff;
        --dark-bg: #000000;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
    
    .btn, .card, .comparison-table, .infographic {
        border: 2px solid black;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
