/* SAAE Bom Jesus da Lapa - Estilo Principal */
:root {
    /* Paleta Institucional */
    --color-primary: #0d6efd; /* Azul Principal */
    --color-dark-blue: #0a2540; /* Azul Escuro Institucional */
    --color-light-blue: #e7f1ff;
    --color-cyan: #0dcaf0;
    --color-white: #ffffff;
    --color-gray-light: #f8f9fa;
    --color-gray-dark: #495057;
    --color-success: #198754;
    --color-danger: #dc3545;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-gray-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
    transition: font-size 0.3s ease;
}

/* Utilitários */
.bg-dark-blue { background-color: var(--color-dark-blue) !important; }
.text-dark-blue { color: var(--color-dark-blue) !important; }
.bg-light-blue { background-color: var(--color-light-blue) !important; }
.bg-cyan { background-color: var(--color-cyan) !important; }
.text-cyan { color: var(--color-cyan) !important; }
.btn-cyan {
    background-color: var(--color-cyan) !important;
    color: var(--color-dark-blue) !important;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-cyan:hover {
    background-color: #0bb5d9 !important;
    color: var(--color-dark-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3);
}
.btn-outline-light:hover {
    background-color: var(--color-white) !important;
    color: var(--color-dark-blue) !important;
}
.fs-7 { font-size: 0.875rem; }
.fs-8 { font-size: 0.75rem; }
.tracking-wide { letter-spacing: 0.05em; }
.transition-all { transition: all 0.3s ease; }
.hover-bg-primary:hover { 
    background-color: #f8fbff !important; 
    border: 1px solid var(--color-primary) !important; 
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.08) !important; 
    transform: translateY(-5px); 
}
.hover-bg-primary:hover h4 { color: var(--color-primary) !important; }
.hover-white:hover { color: white !important; }
.hover-cyan:hover { color: var(--color-cyan) !important; }

.btn-xs {
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Topbar */
.topbar { font-size: 0.85rem; }

/* Navbar */
.navbar { 
    padding-top: 1rem; 
    padding-bottom: 1rem; 
    transition: all 0.3s ease; 
    background-color: var(--color-white) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important; 
}
.navbar.scrolled { 
    padding-top: 0.5rem; 
    padding-bottom: 0.5rem; 
    background-color: rgba(255, 255, 255, 0.98) !important; 
    backdrop-filter: blur(10px); 
}
.nav-link { 
    font-weight: 500; 
    color: #1f2937 !important; /* Cinza Escuro Elegante para alto contraste */
    padding: 0.5rem 1rem !important; 
    position: relative; 
    transition: all 0.3s ease;
    border-radius: 6px;
}
.nav-link:hover, .nav-link.active {
    color: var(--color-primary) !important;
    background-color: rgba(13, 110, 253, 0.05); /* Hover suave */
}
.nav-link::after { 
    content: ''; 
    position: absolute; 
    bottom: 2px; 
    left: 1rem; 
    right: 1rem; 
    height: 2px; 
    background-color: var(--color-primary); 
    transform: scaleX(0); 
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .nav-link::after {
        left: 0;
        right: auto;
        width: 50px;
        transform-origin: left;
    }
}

/* Hero Section */
.hero-section {
    height: 85vh;
    min-height: 650px;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.75) 50%, rgba(10, 37, 64, 0.3) 100%);
}

/* Cards de Serviço */
.service-card { transition: transform 0.3s ease, box-shadow 0.3s ease; border-radius: 12px; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important; }
.service-card:hover .icon-wrapper { background-color: var(--color-primary) !important; color: white !important; }
.icon-wrapper { transition: all 0.3s ease; }

/* Comunicados */
.comunicado-card { transition: transform 0.3s ease; border-radius: 8px; }
.comunicado-card:hover { transform: translateX(5px); }

/* Notícias */
.news-card { border-radius: 12px; transition: transform 0.3s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important; }
.news-img-wrapper img { transition: transform 0.5s ease; }
.news-card:hover .news-img-wrapper img { transform: scale(1.05); }

/* Licitações */
.licitacao-item { transition: background-color 0.2s ease; }
.licitacao-item:hover { background-color: var(--color-light-blue); }

/* Footer Links */
.footer-links a { transition: color 0.2s ease; }

/* Floating Buttons */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background-color: #25d366; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 30px; z-index: 1000; transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

.back-to-top {
    position: fixed; bottom: 100px; right: 35px;
    width: 50px; height: 50px;
    background-color: var(--color-primary); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 20px; z-index: 1000; border: none; cursor: pointer;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--color-dark-blue); }

/* Paginação Customizada */
.custom-pagination .page-link {
    color: var(--color-dark-blue);
    border: none;
    margin: 0 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.custom-pagination .page-item.active .page-link {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}
.custom-pagination .page-link:hover:not(.disabled) {
    background-color: var(--color-light-blue);
    color: var(--color-primary);
}
.custom-pagination .page-item.disabled .page-link {
    background-color: transparent;
    color: #ccc;
    box-shadow: none;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    border-top: 4px solid var(--color-primary);
    padding: 1.5rem 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}
.cookie-consent-banner.show {
    transform: translateY(0);
}

/* Custom Utilities for App Mockup */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}
.rounded-4 { border-radius: 1.5rem !important; }
.rounded-5 { border-radius: 2.5rem !important; }

/* Additional Utilities */
.z-0 { z-index: 0 !important; }
.z-1 { z-index: 1 !important; }
.z-2 { z-index: 2 !important; }
.object-fit-cover { object-fit: cover !important; }
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bg-white-10 { background-color: rgba(255, 255, 255, 0.1) !important; }
.hover-bg-white-20:hover { background-color: rgba(255, 255, 255, 0.2) !important; }

/* Conteúdo Rico (CMS) */
.conteudo-rico {
    line-height: 1.8;
    color: #4b5563;
}
.conteudo-rico h2, .conteudo-rico h3, .conteudo-rico h4 {
    color: var(--color-dark-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.conteudo-rico p {
    margin-bottom: 1.5rem;
}
.conteudo-rico ul, .conteudo-rico ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.conteudo-rico li {
    margin-bottom: 0.5rem;
}
