/**
 * AGUAPREVI - Instituto Municipal de Previdência Social
 * Folha de Estilos Principal
 * 
 * @version 1.0.0
 * @date 2026-07-02
 */

/* ============================================
   VARIÁVEIS CSS - CORES DA MARCA AGUAPREVI
   ============================================ */
:root {
    --primary-color: #003366;
    --secondary-color: #0066cc;
    --accent-color: #00a8e8;
    --light-blue: #e6f2ff;
    --dark-blue: #001a33;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --orange: #ff6b35;
    --purple: #6f42c1;
    --green: #20c997;
}

/* ============================================
   RESET E CONFIGURAÇÕES GLOBAIS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--gray-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   HEADER - CABEÇALHO
   ============================================ */
.top-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo-img {
    max-height: 80px;
    width: auto;
}

.logo-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--white);
}

.logo-text p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
    font-style: italic;
}

/* ============================================
   NAVEGAÇÃO
   ============================================ */
.main-nav {
    background-color: var(--dark-blue);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 0;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    padding: 1rem 1.2rem;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--accent-color);
}

.dropdown-menu {
    background-color: var(--primary-color);
    border: none;
    border-radius: 0;
    margin-top: 0;
}

.dropdown-item {
    color: var(--white);
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.navbar-toggler {
    border-color: var(--white);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   BANNER PRINCIPAL
   ============================================ */
.hero-banner {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/banner-agua-boa.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

/* ============================================
   CARDS DE CONTATO RÁPIDO
   ============================================ */
.quick-contact-section {
    padding: 3rem 0;
    background-color: var(--gray-light);
}

.contact-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-card.orange {
    border-top-color: var(--orange);
}

.contact-card.purple {
    border-top-color: var(--purple);
}

.contact-card.blue {
    border-top-color: var(--secondary-color);
}

.contact-card.green {
    border-top-color: var(--green);
}

.contact-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card.orange .icon {
    color: var(--orange);
}

.contact-card.purple .icon {
    color: var(--purple);
}

.contact-card.blue .icon {
    color: var(--secondary-color);
}

.contact-card.green .icon {
    color: var(--green);
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-card p {
    font-size: 1rem;
    color: var(--gray-medium);
    margin: 0;
}

/* ============================================
   SEÇÃO DE NOTÍCIAS
   ============================================ */
.news-section {
    padding: 4rem 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.news-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85rem;
    color: var(--gray-medium);
    margin-bottom: 0.5rem;
}

.news-card-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.news-card-body p {
    font-size: 0.95rem;
    color: var(--gray-medium);
    line-height: 1.6;
    flex-grow: 1;
}

.btn-read-more {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

/* ============================================
   SEÇÕES DE CONTEÚDO
   ============================================ */
.content-section {
    padding: 4rem 0;
}

.content-section.bg-light {
    background-color: var(--gray-light);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
}

.subsection-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.content-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.content-box h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.content-box p {
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-box ul {
    list-style: none;
    padding-left: 0;
}

.content-box ul li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.content-box ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* ============================================
   ESTATÍSTICAS / DASHBOARD
   ============================================ */
.stats-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.stat-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-card .label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   GRID DE TRANSPARÊNCIA
   ============================================ */
.transparency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.transparency-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-color);
}

.transparency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-top-color: var(--accent-color);
}

.transparency-card .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.transparency-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.transparency-card .btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

/* ============================================
   DOCUMENTOS / DOWNLOADS
   ============================================ */
.document-list {
    list-style: none;
    padding: 0;
}

.document-item {
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.document-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateX(5px);
}

.document-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.document-info p {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin: 0;
}

.btn-download {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* ============================================
   FORMULÁRIO DE CONTATO
   ============================================ */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
    outline: none;
}

.btn-submit {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-info-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info-box .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-info-box h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info-box p {
    font-size: 1.1rem;
    margin: 0;
}

/* ============================================
   FOOTER - RODAPÉ
   ============================================ */
.main-footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p,
.footer-section a {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

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

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

.footer-section ul li {
    padding: 0.3rem 0;
}

.footer-section ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .hero-banner {
        height: 350px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .transparency-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .contact-card {
        margin-bottom: 1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* ============================================
   UTILITÁRIOS
   ============================================ */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* ============================================
   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;
}

:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
