/* Reset e estilos base */
:root {
    --primary-color: #0066cc;
    --primary-hover: #0055aa;
    --secondary-color: #333;
    --background-color: #f5f5f5;
    --border-color: #ddd;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #ddd;
    --footer-bg: #333;
    --footer-text: #fff;
    --focus-color: #0095f6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px var(--shadow-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.site-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #004080);
    border-radius: 10px;
    margin-right: 15px;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.logo-text {
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px var(--shadow-color);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

/* Navegação */
.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--background-color);
    color: var(--primary-color);
}

/* Conteúdo principal */
.main-content {
    padding: 30px 0;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--background-color);
}

/* Rodapé */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section a {
    color: var(--text-lighter);
}

.footer-section a:hover {
    color: var(--footer-text);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navegação Mobile */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
    justify-content: space-around;
    z-index: 100;
}

.mobile-nav a {
    color: var(--text-color);
    font-size: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-nav a.active {
    color: var(--focus-color);
}

.mobile-only {
    display: none;
}

/* 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-width: 0;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding: 15px 10px;
    }

    .logo-container {
        margin-bottom: 15px;
        margin-right: 0;
    }

    .main-nav ul {
        justify-content: center;
    }

    .mobile-nav {
        display: flex;
    }

    .main-content {
        margin-bottom: 60px;
    }

    .mobile-only {
        display: block;
    }
}

@media (max-width: 576px) {
    .site-logo {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo {
        font-size: 20px;
    }

    .container {
        padding: 0 10px;
    }
}