/* ===== MELHORIAS DE TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: var(--font-size-lg);
    font-weight: 500;
}

h5 {
    font-size: var(--font-size-base);
    font-weight: 500;
}

h6 {
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== MELHORIAS DE TEXTO ===== */
p {
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.text-large {
    font-size: var(--font-size-lg);
    line-height: 1.6;
}

.text-small {
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--text-primary);
}

.text-accent {
    color: var(--text-accent);
}

/* ===== MELHORIAS DE LAYOUT ===== */
.container-fluid {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

.section-spacing {
    padding: var(--spacing-xl) 0;
}


/* ===== MELHORIAS DE 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: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* ===== ESTADOS DE FOCO MELHORADOS ===== */
*:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--text-accent);
    outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 1px;
}

/* ===== MELHORIAS DE CONFORTO VISUAL ===== */
.reading-content {
    max-width: 65ch;
    line-height: 1.8;
    font-size: var(--font-size-base);
}

.high-contrast {
    filter: contrast(1.2);
}

.reduced-motion {
    animation: none !important;
    transition: none !important;
}

/* ===== MELHORIAS DE INTERAÇÃO ===== */
.interactive-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.clickable {
    cursor: pointer;
    user-select: none;
}

.no-select {
    user-select: none;
}

/* ===== MELHORIAS RESPONSIVAS ===== */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    .section-spacing {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-section {
        height: 60vh;
        min-height: 500px;
    }
    
    .navbar-nav .nav-link {
        padding: var(--spacing-xs) var(--spacing-sm) !important;
        margin: var(--spacing-xs) 0;
    }
    
    .card-body {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 0 var(--spacing-sm);
    }
    
    .card-body {
        padding: var(--spacing-md);
    }
    
    .btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-xs);
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* ===== MELHORIAS DE PERFORMANCE ===== */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ===== MELHORIAS DE DARK MODE ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
    }
}

/* ===== MELHORIAS DE CONTRASTE ===== */
@media (prefers-contrast: high) {
    :root {
        --border-color: #475569;
        --border-color-hover: #64748b;
        --text-secondary: #e2e8f0;
    }
    
    .card {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
        font-weight: 600;
    }
}

/* ===== MELHORIAS DE REDUÇÃO DE MOVIMENTO ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .parallax {
        transform: none !important;
    }
}