/* 
=====================================================================
| FOLHA DE ESTILOS (CSS) - CONFRATIC                               |
=====================================================================
| Esta folha de estilos controla toda a aparência visual do site    |
| da CONFRATIC. O arquivo está organizado nas seguintes seções:     |
|                                                                   |
| 1. Variáveis e Reset                                              |
| 2. Estilos Base e Acessibilidade                                 |
| 3. Cabeçalho (Header) e Navegação                                |
| 4. Banner Principal (Hero) - ATUALIZADO COM IMAGEM               |
| 5. Cards e Grids - CORRIGIDO PARA 4 CARDS EM LINHA              |
| 6. Seções Específicas                                             |
| 7. Formulários                                                    |
| 8. Rodapé (Footer)                                                |
| 9. Responsividade (Media Queries)                                 |
| 10. Estados e Interações                                          |
=====================================================================
*/

/* 
=====================================================================
| 1. VARIÁVEIS E RESET                                             |
=====================================================================
*/

:root {
    --primary: #0052cc;
    --primary-dark: #003d99;
    --secondary: #1a73e8;
    --accent: #ff5722;
    --light: #f5f7fa;
    --dark: #0a1929;
    --gray: #6c757d;
    --success: #00875a;
    --info: #0065ff;
    --warning: #ffab00;
    --danger: #e34935;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

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

/* 
=====================================================================
| 2. ESTILOS BASE E ACESSIBILIDADE                                 |
=====================================================================
*/

/* Scroll behavior para acessibilidade */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Reduzir movimento para usuários sensíveis */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
    overflow-x: hidden;
}

/* Prevenir scroll quando menu mobile estiver aberto */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

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

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

/* Focus styles melhorados */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

a:hover, a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Fallback para navegadores que não suportam loading=lazy */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* Placeholder para imagens carregando */
.img-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    color: var(--dark);
    line-height: 1.3;
}

/* Screen reader only content */
.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;
}

/* 
=====================================================================
| 3. CABEÇALHO (HEADER) E NAVEGAÇÃO - CORRIGIDO                   |
=====================================================================
*/

header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    z-index: 1002;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--dark);
    text-decoration: none;
}

.logo:hover, .logo:focus {
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.logo-icon {
    margin-right: 0.5rem;
    font-size: 2rem;
}

/* NAVEGAÇÃO DESKTOP */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: var(--transition);
}

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

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

.nav-link:hover, .nav-link:focus {
    color: var(--primary);
    text-decoration: none;
}

/* BOTÃO MENU MOBILE - CORRIGIDO */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    padding: 0.5rem;
    border-radius: 4px;
    width: 48px;
    height: 48px;
    position: relative;
    z-index: 1003;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    justify-content: center;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus {
    background: #f0f0f0;
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.mobile-nav-toggle[aria-expanded="true"] {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

/* OVERLAY PARA MENU MOBILE */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 
=====================================================================
| 4. BANNER PRINCIPAL (HERO) - ATUALIZADO COM IMAGEM               |
=====================================================================
*/

.hero {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero-image-container {
    position: relative;
    width: 100vw;
    height: 70vh;
    overflow: hidden;
    background-color: #f5f5f5;
    z-index: 0;
}

.hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 100vw;
    max-height: 70vh;
    transform: translate(-50%, -50%);
    display: block;
}

/* NOVA SEÇÃO PARA O TEXTO */
.hero-text {
    background-color: #fff;
    padding: 5rem 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--dark);
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
    border: 2px solid transparent;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #e64a19;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Fallback para quando a imagem não carregar */
.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: -1;
}

/* 
=====================================================================
| 5. CARDS E GRIDS - CORRIGIDO PARA 4 CARDS EM LINHA              |
=====================================================================
*/

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    padding-bottom: 0.7rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30%;
    width: 40%;
    height: 3px;
    background-color: var(--primary);
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover, .card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* GRID PADRÃO - para outras seções */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* GRID ESPECÍFICO PARA ABOUT - 4 CARDS EM LINHA NO DESKTOP */
.about .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* GRID DE 3 COLUNAS - para seções específicas */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* 
=====================================================================
| 6. SEÇÕES ESPECÍFICAS                                            |
=====================================================================
*/

/* About Section */
.about {
    padding: 5rem 0;
    background-color: #fff;
}

/* Finalidades Section */
.finalidades {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.finalidade-item {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.finalidade-item:hover, .finalidade-item:focus-within {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateX(3px);
}

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

.finalidade-text {
    font-size: 1.05rem;
    color: #444;
}

/* Atividades Section */
.atividades {
    padding: 5rem 0;
    background-color: #fff;
}

.atividade-card {
    background-color: #f9fafb;
    border-left: 4px solid var(--accent);
    padding: 2rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    transition: var(--transition);
    height: 100%;
}

.atividade-card:hover, .atividade-card:focus-within {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background-color: #fff;
}

.atividade-card h3 {
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.atividade-card h3 span {
    margin-right: 0.8rem;
    background-color: rgba(255, 87, 34, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.2rem;
}

.atividade-card p {
    color: #666;
    line-height: 1.6;
}

/* Visão e Missão */
.vision-mission {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.vision-mission .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.content-box {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    height: 100%;
}

.content-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.8rem;
}

.content-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.content-box p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Valores */
.values {
    padding: 5rem 0;
    background-color: #fff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.value-card {
    background-color: #f9fafb;
    border-left: 4px solid var(--primary);
    padding: 1.8rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    transition: var(--transition);
}

.value-card:hover, .value-card:focus-within {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background-color: #fff;
}

.value-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.value-card h3 span {
    margin-right: 0.8rem;
    background-color: rgba(0, 82, 204, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* Propósito */
.purpose {
    padding: 5rem 0;
    background-color: var(--dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.purpose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,82,204,0.9) 0%, rgba(10,25,41,0.9) 100%);
    z-index: 1;
}

.purpose .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.purpose h2 {
    color: #fff;
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.purpose h2::after {
    background-color: var(--accent);
    margin: 0 auto;
    left: 0;
    right: 0;
}

.purpose p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background-color: #fff;
    text-align: center;
 	display: block;         /* garante que se comporte como bloco */
 	margin-left: auto;      /* centraliza à esquerda/direita */
	margin-right: auto;
 	width: fit-content;     /* ajusta largura ao conteúdo */
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta p {
    color: #666;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 
=====================================================================
| 7. FORMULÁRIOS                                                   |
=====================================================================
*/

/* Contato */
.contact {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.contact-grid {
    display: block;         /* garante que se comporte como bloco */
 	margin-left: auto;      /* centraliza à esquerda/direita */
	margin-right: auto;
 	width: fit-content;     /* ajusta largura ao conteúdo */
	max-width: 600px;       /* limite máximo */
    grid-template-columns: 1fr 1fr;
    gap: 3rem;	
}

.contact-info {
    padding: 2rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: var(--dark);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.contact-icon {
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-text {
    color: #555;
}

.contact-text strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

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

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.form-control:invalid {
    border-color: var(--danger);
}

.form-control[aria-invalid="true"] {
    border-color: var(--danger);
}

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

.btn-form {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-form:hover, .btn-form:focus {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-form:disabled {
    background-color: var(--gray);
    cursor: not-allowed;
    transform: none;
}

/* Status messages */
.form-status {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: none;
}

.form-status.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-status.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

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

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estilos adicionais para validação */
.error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1.2em;
}

.form-help {
    color: var(--gray);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

/* 
=====================================================================
| 8. RODAPÉ (FOOTER)                                               |
=====================================================================
*/

footer {
    background-color: var(--dark);
    color: #fff;
    padding: 4rem 0 1rem;
}

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

.footer-col h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover, .footer-links a:focus {
    color: #fff;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    transition: var(--transition);
}

.social-icon:hover, .social-icon:focus {
    background-color: var(--primary);
    transform: translateY(-3px);
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* 
=====================================================================
| 9. RESPONSIVIDADE (MEDIA QUERIES) - CORRIGIDA                   |
=====================================================================
*/

/* DESKTOP GRANDE (>1400px) - Cards About ainda mais espaçados */
@media (min-width: 1400px) {
    .about .grid {
        gap: 3rem;
    }
}

/* DESKTOP (1200px-1400px) - 4 cards em linha */
@media (max-width: 1400px) and (min-width: 1200px) {
    .about .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* TABLET GRANDE (992px-1200px) - 2 cards por linha */
@media (max-width: 1200px) and (min-width: 992px) {
    .about .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* MENU MOBILE - RESPONSIVIDADE CORRIGIDA */
@media (max-width: 992px) {
    /* Mostrar botão mobile */
    .mobile-nav-toggle {
        display: flex;
    }

    /* MENU MOBILE CORRIGIDO */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        margin: 0;
        padding: 2rem;
        list-style: none;
    }

    /* Estado ativo do menu */
    .nav-menu.active {
        left: 0;
    }

    /* Links do menu mobile */
    .nav-item {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 1.3rem;
        padding: 1.2rem 2rem;
        display: block;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
        color: var(--dark);
        transition: var(--transition);
        width: 100%;
        min-height: 48px;
        border-radius: var(--border-radius);
    }

    .nav-link:hover,
    .nav-link:focus {
        background-color: #f8f9fa;
        color: var(--primary);
        text-decoration: none;
    }

    .nav-link:after {
        display: none;
    }

    /* About - 2 cards por linha em tablet */
    .about .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Ajustes para outras seções */
    .vision-mission .container,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-container {
        height: 60vh;
    }
    
    .hero-image {
        max-height: 60vh;
    }
    
    .hero-text h1 {
        font-size: 2.4rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
}

/* TOUCH DEVICES */
@media (hover: none) and (pointer: coarse) {
    .mobile-nav-toggle {
        min-width: 48px;
        min-height: 48px;
        padding: 0.7rem;
    }
    
    .nav-link {
        min-height: 48px;
        padding: 1.5rem 2rem;
    }
}

/* TABLET (768px-992px) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    /* About - 1 card por linha em mobile */
    .about .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Outros grids */
    .grid, .grid-3 {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .purpose h2 {
        font-size: 1.8rem;
    }

    .purpose p {
        font-size: 1.1rem;
    }

    .hero-image-container {
        height: 50vh;
    }
    
    .hero-image {
        max-height: 50vh;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-btns {
        justify-content: center;
    }

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

/* MOBILE (576px-768px) */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .hero-image-container {
        height: 40vh;
    }
    
    .hero-image {
        max-height: 40vh;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .finalidade-item {
        padding: 1rem;
    }

    .content-box {
        padding: 1.5rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .mobile-nav-toggle {
        width: 44px;
        height: 44px;
    }

    /* About - garantir 1 card por linha em mobile pequeno */
    .about .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* 
=====================================================================
| 10. ESTADOS E INTERAÇÕES                                         |
=====================================================================
*/

/* Botão voltar ao topo */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    z-index: 1000;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.back-to-top:hover, .back-to-top:focus {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.back-to-top.show {
    display: flex;
}

/* Estados de navegação por teclado */
.keyboard-navigation *:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .card, .content-box, .contact-info, .contact-form {
        border: 1px solid #000;
    }
    
    small, .form-help {
        color: #000;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .hero h1,
    .hero p {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
    }
    
    .hero .btn-secondary {
        border-color: #fff;
        background-color: rgba(0, 0, 0, 0.3);
    }
}

/* Reduzir movimento para usuários sensíveis */
@media (prefers-reduced-motion: reduce) {
    .hero-image {
        object-fit: contain;
    }
    
    .hero .btn:hover,
    .hero .btn:focus {
        transform: none;
    }
}

/* Melhor contraste para texto pequeno */
small, .form-help {
    color: #666;
}

/* 
=====================================================================
| OTIMIZAÇÕES PARA PERFORMANCE DA IMAGEM HERO                     |
=====================================================================
*/

/* Lazy loading da imagem hero */
.hero-image[data-src] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-image[data-src].loaded {
    opacity: 1;
}

/* 
=====================================================================
| PRINT STYLES                                                     |
=====================================================================
*/

@media print {
    .hero {
        background: #fff !important;
        color: #000 !important;
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
    
    .hero-image-container,
    .hero-overlay {
        display: none !important;
    }
    
    .hero h1,
    .hero p {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    .hero-btns {
        display: none !important;
    }
    
    .back-to-top {
        display: none !important;
    }
    
    .mobile-nav-toggle {
        display: none !important;
    }

    .nav-overlay {
        display: none !important;
    }
    
    /* About - forçar layout de impressão */
    .about .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        page-break-inside: avoid;
    }
}

/* 
=====================================================================
| BREAKPOINTS ESPECÍFICOS PARA ABOUT SECTION                      |
=====================================================================
*/

/* Desktop ultra-wide (>1600px) - 4 cards com mais espaço */
@media (min-width: 1600px) {
    .about .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Desktop padrão (1200px-1600px) - 4 cards */
@media (min-width: 1200px) and (max-width: 1599px) {
    .about .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Tablet landscape (900px-1199px) - 2 cards */
@media (min-width: 900px) and (max-width: 1199px) {
    .about .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Tablet portrait (600px-899px) - 2 cards menores */
@media (min-width: 600px) and (max-width: 899px) {
    .about .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .about .card {
        padding: 1.5rem;
    }
}

/* Mobile (< 600px) - 1 card */
@media (max-width: 599px) {
    .about .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about .card {
        padding: 1.5rem;
    }
    
    .about .card h3 {
        font-size: 1.2rem;
    }
    
    .about .card-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}