/* CSS Moderno para HTML5 - Site Denis II */

/* Reset e base modernos */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* Melhorias de acessibilidade */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
    font-weight: bold;
}

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

/* Navegação melhorada */
nav[role="navigation"] {
    background: #1875E8;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

nav li {
    margin: 0;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

nav a:hover,
nav a:focus {
    background-color: rgba(255, 255, 255, 0.2);
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Estrutura semântica */
main {
    min-height: 60vh;
    padding: 2rem 0;
}

article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

/* Seções de conteúdo */
section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Grid responsivo moderno */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Cards de conteúdo */
.box-style1 {
    text-align: center;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: all 0.3s ease;
}

.box-style1:hover {
    border-color: #1875E8;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(24, 117, 232, 0.15);
}

.box-style1 img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.box-style1:hover img {
    transform: scale(1.05);
}

.box-style1 h3 {
    color: #1875E8;
    margin: 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Botões modernos */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #1875E8;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.button:hover,
.button:focus {
    background: #0d5bb8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 117, 232, 0.3);
    outline: none;
}

.button-big {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Footer moderno */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer li {
    margin: 0.5rem 0;
}

/* Responsividade aprimorada */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .box-style1 {
        padding: 1.5rem;
    }
    
    article {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .box-style1 {
        padding: 1rem;
    }
    
    .button {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Melhorias de acessibilidade para imagens */
img {
    max-width: 100%;
    height: auto;
}

/* Focus visível para todos os elementos interativos */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #1875E8;
    outline-offset: 2px;
}

/* Melhorias para leitores de tela */
.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;
}

/* Animações suaves */
@media (prefers-reduced-motion: no-preference) {
    * {
        transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    }
}

/* Print styles */
@media print {
    .skip-link,
    nav,
    .button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .box-style1 {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}
