/* ============================================
   RESET E VARIÁVEIS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de Cores Exclusiva */
    --primary: #1a4d7a;
    --primary-light: #2d6fa8;
    --primary-dark: #0f2e4a;
    --secondary: #e8914a;
    --secondary-light: #f4a860;
    --secondary-dark: #d67a35;
    
    --neutral-100: #f8f9fb;
    --neutral-200: #e8eaed;
    --neutral-300: #c5c9cf;
    --neutral-400: #9ba1a8;
    --neutral-500: #6d7580;
    --neutral-600: #4a5158;
    --neutral-700: #2c3238;
    --neutral-800: #1a1d21;
    
    --success: #2d8659;
    --warning: #d48b2f;
    --error: #c24444;
    --info: #4a8fc7;
    
    /* Tipografia */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    
    /* Espaçamentos */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    
    /* Transições */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--neutral-700);
    line-height: 1.6;
    background: var(--neutral-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

h4 {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
}

p {
    margin-bottom: var(--space-md);
}

strong {
    font-weight: 600;
    color: var(--primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
}

.section-lead {
    font-size: 1.15rem;
    color: var(--neutral-600);
    margin-top: var(--space-md);
}

section {
    padding: var(--space-3xl) 0;
}

/* ============================================
   HEADER E NAVEGAÇÃO
   ============================================ */
.main-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--neutral-200);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
}

.logo img {
    height: 48px;
    width: auto;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.main-nav {
    display: flex;
    gap: var(--space-lg);
}

.main-nav a {
    color: var(--neutral-700);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-xs) 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary);
    border-bottom-color: var(--secondary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fb 0%, #e8eaed 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 900px;
}

.hero-text h1 {
    color: var(--primary-dark);
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-600);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.stat-item {
    background: white;
    padding: var(--space-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--secondary);
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--neutral-600);
    line-height: 1.5;
}

/* ============================================
   RISK SECTION
   ============================================ */
.risk-section {
    background: white;
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.risk-card {
    background: var(--neutral-100);
    padding: var(--space-lg);
    border-radius: 8px;
    border-top: 4px solid var(--neutral-300);
    transition: var(--transition);
}

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

.risk-card.critical {
    border-top-color: var(--error);
}

.risk-card.high {
    border-top-color: var(--warning);
}

.risk-card.medium {
    border-top-color: var(--info);
}

.risk-card.financial {
    border-top-color: var(--secondary);
}

.risk-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
}

.risk-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.risk-card ul {
    list-style: none;
    margin-top: var(--space-md);
}

.risk-card li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
    font-size: 0.9rem;
    color: var(--neutral-600);
}

.risk-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.insight-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: var(--space-xl);
    border-radius: 12px;
    margin-top: var(--space-2xl);
}

.insight-box h4 {
    color: white;
    margin-bottom: var(--space-md);
}

.insight-box p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   ACCOUNTING SECTION
   ============================================ */
.accounting-section {
    background: var(--neutral-100);
}

.content-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
}

.column-main h3 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
}

.column-main h3:first-child {
    margin-top: 0;
}

.process-flow {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.flow-step {
    display: flex;
    gap: var(--space-md);
    background: white;
    padding: var(--space-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-content h4 {
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--neutral-600);
    margin: 0;
}

.balance-sheet {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin: var(--space-lg) 0 var(--space-2xl);
}

.balance-column {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.balance-column h4 {
    background: var(--primary);
    color: white;
    padding: var(--space-md);
    margin: 0;
    text-align: center;
}

.balance-items {
    padding: var(--space-md);
}

.balance-item {
    padding: var(--space-md);
    border-bottom: 1px solid var(--neutral-200);
}

.balance-item:last-child {
    border-bottom: none;
}

.balance-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.balance-item span {
    font-size: 0.9rem;
    color: var(--neutral-600);
}

.dre-structure {
    background: white;
    border-radius: 8px;
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    margin: var(--space-lg) 0;
}

.dre-line {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--neutral-200);
}

.dre-line:last-child {
    border-bottom: none;
}

.dre-line.deduction {
    background: rgba(244, 168, 96, 0.08);
}

.dre-line.result {
    background: rgba(26, 77, 122, 0.06);
    font-weight: 600;
}

.dre-line.result.final {
    background: var(--success);
    color: white;
}

.dre-line.result.final .dre-label,
.dre-line.result.final .dre-desc {
    color: white;
}

.dre-label {
    font-weight: 600;
    color: var(--neutral-700);
}

.dre-desc {
    font-size: 0.9rem;
    color: var(--neutral-600);
}

.column-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.info-card {
    background: white;
    padding: var(--space-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.info-card.highlight {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
}

.info-card.highlight h4,
.info-card.highlight strong {
    color: white;
}

.info-card h4 {
    margin-bottom: var(--space-md);
    font-size: 1.15rem;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
}

.info-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.info-card.highlight li::before {
    color: var(--secondary-light);
}

.indicator {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-md);
    border-radius: 6px;
    margin-bottom: var(--space-md);
}

.indicator:last-child {
    margin-bottom: 0;
}

.indicator strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: var(--space-xs);
}

.indicator span {
    display: block;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    opacity: 0.9;
    margin-bottom: var(--space-xs);
}

.indicator p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

/* ============================================
   TAX SECTION
   ============================================ */
.tax-section {
    background: white;
}

.tax-regimes {
    margin-bottom: var(--space-3xl);
}

.regime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.regime-card {
    background: var(--neutral-100);
    border-radius: 8px;
    padding: var(--space-lg);
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.regime-card h4 {
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-size: 1.35rem;
}

.regime-detail {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--neutral-300);
}

.regime-detail strong {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
    color: var(--neutral-600);
}

.regime-pros,
.regime-cons {
    margin-top: var(--space-md);
}

.regime-pros strong {
    color: var(--success);
}

.regime-cons strong {
    color: var(--warning);
}

.regime-pros ul,
.regime-cons ul {
    list-style: none;
    margin-top: var(--space-sm);
}

.regime-pros li,
.regime-cons li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
    font-size: 0.9rem;
}

.regime-pros li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.regime-cons li::before {
    content: "−";
    position: absolute;
    left: 0;
    color: var(--warning);
    font-weight: bold;
}

.tax-alert {
    background: linear-gradient(135deg, var(--warning) 0%, var(--secondary) 100%);
    color: white;
    padding: var(--space-xl);
    border-radius: 8px;
    margin-top: var(--space-xl);
}

.tax-alert h4 {
    color: white;
    margin-bottom: var(--space-md);
}

.tax-alert p {
    margin: 0;
    line-height: 1.7;
}

.tax-recovery {
    margin-top: var(--space-3xl);
}

.recovery-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.recovery-item {
    background: var(--neutral-100);
    padding: var(--space-lg);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.recovery-item h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.recovery-process {
    background: white;
    padding: var(--space-xl);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-top: var(--space-xl);
}

.recovery-process h4 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.timeline-step {
    position: relative;
    text-align: center;
}

.timeline-step strong {
    display: block;
    background: var(--primary);
    color: white;
    padding: var(--space-md);
    border-radius: 8px;
    margin-bottom: var(--space-md);
    font-size: 1.05rem;
}

.timeline-step p {
    font-size: 0.9rem;
    color: var(--neutral-600);
    margin: 0;
}

/* ============================================
   CONSULTING SECTION
   ============================================ */
.consulting-section {
    background: var(--neutral-100);
}

.consulting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.consulting-card {
    background: white;
    padding: var(--space-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.consulting-card h4 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.consulting-card ul {
    list-style: none;
    margin: var(--space-md) 0;
}

.consulting-card li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
    font-size: 0.9rem;
}

.consulting-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.consulting-note {
    background: var(--neutral-100);
    padding: var(--space-md);
    border-radius: 6px;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--neutral-600);
    margin-top: var(--space-md);
    border-left: 3px solid var(--secondary);
}

.kpi-section {
    margin-top: var(--space-3xl);
}

.kpi-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: var(--space-xl) 0;
}

.kpi-table thead {
    background: var(--primary);
    color: white;
}

.kpi-table th {
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
}

.kpi-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--neutral-200);
}

.kpi-table tbody tr:hover {
    background: var(--neutral-100);
}

.kpi-table tbody tr:last-child td {
    border-bottom: none;
}

.case-study {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: var(--space-xl);
    border-radius: 12px;
    margin-top: var(--space-2xl);
}

.case-study h4 {
    color: white;
    margin-bottom: var(--space-md);
}

.case-study p,
.case-study ul,
.case-study ol {
    line-height: 1.7;
}

.case-study strong {
    color: var(--secondary-light);
}

.case-study ul,
.case-study ol {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.case-study li {
    margin-bottom: var(--space-xs);
}

.case-conclusion {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-md);
    border-radius: 6px;
    margin-top: var(--space-md);
    font-weight: 500;
}

/* ============================================
   HR SECTION
   ============================================ */
.hr-section {
    background: white;
}

.hr-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.hr-card {
    background: var(--neutral-100);
    padding: var(--space-lg);
    border-radius: 8px;
    border-top: 3px solid var(--primary);
}

.hr-card h4 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.hr-card ul {
    list-style: none;
}

.hr-card li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
    font-size: 0.9rem;
}

.hr-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.hr-risks {
    margin-top: var(--space-3xl);
}

.risk-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: var(--space-xl) 0;
}

.risk-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--neutral-200);
}

.risk-row:last-child {
    border-bottom: none;
}

.risk-row:hover {
    background: var(--neutral-100);
}

.risk-item-name {
    font-weight: 600;
    color: var(--primary);
}

.risk-item-impact {
    color: var(--neutral-600);
    font-size: 0.95rem;
}

.hr-compliance {
    margin-top: var(--space-3xl);
}

.esocial-events {
    background: var(--neutral-100);
    padding: var(--space-xl);
    border-radius: 8px;
    margin-top: var(--space-xl);
}

.esocial-events h4 {
    margin-bottom: var(--space-md);
}

.esocial-events ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.esocial-events li {
    padding: var(--space-sm);
    background: white;
    border-radius: 6px;
    font-size: 0.9rem;
}

.esocial-note {
    background: var(--warning);
    color: white;
    padding: var(--space-md);
    border-radius: 6px;
    margin-top: var(--space-md);
}

.esocial-note strong {
    color: white;
}

.hr-best-practices {
    margin-top: var(--space-3xl);
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.practice-item {
    background: white;
    padding: var(--space-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--secondary);
}

.practice-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

/* ============================================
   INSTITUTIONAL SECTION
   ============================================ */
.institutional-section {
    background: var(--neutral-100);
}

.credentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.credential-card {
    background: white;
    padding: var(--space-xl);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.credential-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: var(--space-lg);
    border-radius: 8px;
    margin: var(--space-lg) 0;
    font-size: 1.25rem;
}

.ethics-section {
    margin-bottom: var(--space-3xl);
}

.ethics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.ethics-item {
    background: white;
    padding: var(--space-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.ethics-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    font-size: 1.05rem;
}

.liability-section {
    margin-bottom: var(--space-3xl);
}

.liability-list {
    list-style: none;
    margin-top: var(--space-lg);
}

.liability-list li {
    background: white;
    padding: var(--space-lg);
    border-radius: 8px;
    margin-bottom: var(--space-md);
    border-left: 4px solid var(--error);
}

.liability-list li:last-child {
    margin-bottom: 0;
}

.liability-note {
    background: var(--neutral-200);
    padding: var(--space-md);
    border-radius: 6px;
    margin-top: var(--space-lg);
    font-style: italic;
    color: var(--neutral-700);
}

.why-choose {
    margin-top: var(--space-3xl);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.reason-item {
    background: white;
    padding: var(--space-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--secondary);
}

.reason-item h4 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    background: white;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--neutral-100);
    border-radius: 8px;
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: var(--space-lg);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--neutral-200);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--secondary);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--neutral-700);
    line-height: 1.7;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--neutral-100);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
}

.contact-info {
    background: white;
    padding: var(--space-xl);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.contact-info h3 {
    margin-bottom: var(--space-lg);
}

.info-item {
    margin-bottom: var(--space-lg);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
}

.info-item p {
    color: var(--neutral-600);
    margin: 0;
    line-height: 1.6;
}

.contact-form-wrapper {
    position: relative;
}

.contact-form {
    background: white;
    padding: var(--space-xl);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--neutral-200);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error);
}

.error-message {
    display: none;
    color: var(--error);
    font-size: 0.85rem;
    margin-top: var(--space-xs);
}

.form-group.error .error-message {
    display: block;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-xl);
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-success {
    display: none;
    background: white;
    padding: var(--space-2xl);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.form-success.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto var(--space-lg);
}

.form-success h3 {
    color: var(--success);
    margin-bottom: var(--space-md);
}

.form-success p {
    color: var(--neutral-600);
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.footer-logo {
    filter: brightness(0) invert(1);
    margin-bottom: var(--space-md);
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-contact {
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    margin-top: var(--space-lg);
}

.footer-legal {
    font-size: 0.75rem;
    line-height: 1.6;
    opacity: 0.6;
    margin-bottom: var(--space-md);
}

.footer-legal p {
    margin-bottom: var(--space-xs);
}

.footer-copyright {
    font-size: 0.75rem;
    opacity: 0.5;
    text-align: center;
}

.footer-copyright p {
    margin-bottom: var(--space-xs);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 992px) {
    .content-columns {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .balance-sheet {
        grid-template-columns: 1fr;
    }
    
    .kpi-table {
        font-size: 0.85rem;
    }
    
    .kpi-table th,
    .kpi-table td {
        padding: var(--space-sm);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav.active {
        max-height: 500px;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .risk-grid,
    .regime-grid,
    .recovery-types,
    .consulting-grid,
    .hr-services,
    .ethics-grid,
    .reasons-grid,
    .practices-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .risk-row {
        grid-template-columns: 1fr;
    }
    
    .dre-line {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }
    
    section {
        padding: var(--space-2xl) 0;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-section {
        min-height: 60vh;
    }
}
