/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    background-color: #ffffff;
}

/* Utilitários 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: #000;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

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

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Barra de Acessibilidade */
.accessibility-bar {
    background: #1e3a8a;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.accessibility-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 1rem;
}

.accessibility-links a {
    color: white;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.accessibility-links a:hover,
.accessibility-links a:focus {
    color: #fbbf24;
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Cabeçalho */
.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 60px;
    width: auto;
}

.site-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0;
}

.subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* Campo de Busca */
.search-form {
    display: flex;
    max-width: 400px;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 0.375rem 0 0 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-button {
    padding: 0.75rem 1rem;
    background: #1e3a8a;
    color: white;
    border: 2px solid #1e3a8a;
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover,
.search-button:focus {
    background: #1e40af;
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.search-icon {
    width: 20px;
    height: 20px;
}

/* Navegação Principal */
.main-nav {
    background: #f3f4f6;
    border-bottom: 1px solid #d1d5db;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item a {
    display: block;
    padding: 1rem 1.5rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.nav-item a:hover,
.nav-item a:focus {
    background: #e5e7eb;
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
}

.nav-item.active a {
    background: #1e3a8a;
    color: white;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #6b7280;
    background: #f9fafb;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-list li:not(:last-child)::after {
    content: " > ";
    margin: 0 0.5rem;
    color: #9ca3af;
}

.breadcrumb-list a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

/* Conteúdo Principal */
.main-content {
    min-height: 60vh;
}

/* Hero Section */
.hero {
    position: relative;
    margin-bottom: 3rem;
}

.hero-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

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

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem 0;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 800px;
}

@media (min-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

/* Seções */
section {
    margin-bottom: 3rem;
}

section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Grid de Valores */
.values-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.value-card ul {
    list-style-position: inside;
    margin-left: 0;
}

.value-card li {
    margin-bottom: 0.5rem;
}

/* Grid de Destaques */
.highlights-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .highlights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.highlight-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.highlight-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.highlight-content {
    padding: 1.5rem;
}

.highlight-content h3 {
    margin-bottom: 1rem;
}

.highlight-content h3 a {
    color: #1e3a8a;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
}

.highlight-content h3 a:hover,
.highlight-content h3 a:focus {
    text-decoration: underline;
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Acesso Rápido */
.quick-links {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .quick-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

.quick-link {
    display: block;
    padding: 1.5rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #374151;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.quick-link:hover,
.quick-link:focus {
    background: #e5e7eb;
    border-color: #3b82f6;
    outline: none;
}

.quick-link-title {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.quick-link-desc {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Rodapé */
.footer {
    background: #1e3a8a;
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bfdbfe;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover,
.footer-section a:focus {
    color: white;
    text-decoration: underline;
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.footer-bottom {
    border-top: 1px solid #3b82f6;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #bfdbfe;
}

/* Estados de Foco */
*:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

a:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Responsividade */
@media (max-width: 767px) {
    .nav-list {
        flex-direction: column;
    }
    
    .nav-item a {
        padding: 0.75rem 1rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
}

/* Suporte a Modo de Alto Contraste */
@media (prefers-contrast: high) {
    * {
        border-color: ButtonText !important;
    }
    
    .value-card,
    .highlight-card {
        border-width: 2px;
    }
}

/* Suporte a Movimento Reduzido */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

