/*
==============================================
--- RESET, FONTES E ESTILOS GLOBAIS ---
==============================================
*/
html {
    scroll-behavior: smooth;
}

body, html { 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #f4f4f4; 
    /* Caminho ../imagens/ está CORRETO */
    background-image: url(../imagens/fundosite.png); 
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    min-height: 100%;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

/* Melhoria de Acessibilidade: Foco visível */
a:focus-visible, button:focus-visible, input[type="search"]:focus-visible {
    outline: 3px solid #00a89d;
    outline-offset: 2px;
}

/*
==============================================
--- CABEÇALHO (ESTILOS PADRONIZADOS) ---
==============================================
*/
.new-header {
    position: relative;
    z-index: 2000;
}

.header-top-bar {
    padding: 15px 0;
    background-image: url(../imagens/rodapeazul.png);
}
.header-top-bar-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.header-left { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    flex-shrink: 0;
}
.header-logo { 
    height: 70px; 
    background-color: rgba(255, 255, 255, 0.9); 
    border-radius: 50%; 
    border: 3px solid #fff; 
}
.header-title { 
    color: #ffffff; 
    font-size: 1.1rem; 
    font-weight: 600; 
}
.header-right { 
    display: flex; 
    align-items: center; 
    gap: 25px; 
}
.header-socials { 
    display: flex; 
    gap: 15px; 
}
.header-socials a { 
    color: #ffffff; 
    font-size: 1.5rem; 
    text-decoration: none; 
    transition: opacity 0.3s; 
}
.header-socials a:hover { 
    opacity: 0.8; 
}
.search-form { 
    position: relative; 
}
.search-input { 
    background-color: #ffffff; 
    border: 2px solid #ffffff; 
    border-radius: 20px; 
    padding: 10px 45px 10px 20px; 
    width: 250px; 
    font-size: 0.9rem; 
    color: #1e4799; 
}
.search-input::placeholder { 
    color: #1e4799; 
    opacity: 0.7; 
}
.search-button { 
    position: absolute; 
    right: 5px; 
    top: 50%; 
    transform: translateY(-50%); 
    background: none; 
    border: none; 
    color: #1e4799; 
    font-size: 1.1rem; 
    cursor: pointer; 
    padding: 5px 10px; 
}

/*
==============================================
--- NAVEGAÇÃO PRINCIPAL (PADRONIZADO) ---
==============================================
*/
.header-main-nav { 
    background-color: #0f2c5d;
    position: relative;
}

.header-main-nav > .container > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}
.header-main-nav > .container > ul > li { 
    position: relative;
}
.header-main-nav a { 
    display: block; 
    padding: 15px 0; 
    color: #ffffff; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Seta para indicar dropdown no desktop */
.has-dropdown > a::after {
    content: ' \25BC';
    font-size: 0.7em;
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.2s ease;
}
.has-dropdown:hover > a::after,
.has-dropdown.active > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0f2c5d;
    border-top: 2px solid #4db6ac;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 250px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2100;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}

.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.dropdown-menu li a {
    padding: 12px 20px;
    white-space: nowrap;
    transition: background-color 0.3s, padding-left 0.3s;
}

.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li a:hover {
    background-color: #1e4799;
    padding-left: 25px;
}

/*
==============================================
--- BOTÃO HAMBÚRGUER (PADRONIZADO) ---
==============================================
*/
.mobile-menu-toggle {
    display: none;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 2200;
    line-height: 1;
}

/* Adiciona estilos para os ícones de abrir/fechar */
.mobile-menu-toggle .icon-close {
    display: none;
}
/* Quando o menu está ativo, esconde o 'bars' e mostra o 'x' */
.nav-active .mobile-menu-toggle .icon-open {
    display: none;
}
.nav-active .mobile-menu-toggle .icon-close {
    display: block;
}


/*
==============================================
--- CONTEÚDO PRINCIPAL (PREGÃO) ---
==============================================
*/
/* Estilo do <main> para consistência */
main {
    padding: 40px 15px; 
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    max-width: 1200px; 
    margin: 40px auto; 
    box-sizing: border-box; 
}


.pregao-section {
    /* Padding removido daqui, pois o main já tem padding */
    border-bottom: 1px solid #e0e0e0;
    /* Background removido */
    padding-bottom: 40px; /* Adiciona espaço abaixo de cada seção */
    margin-bottom: 40px; /* Adiciona espaço abaixo de cada seção */
}

.pregao-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #0f2c5d;
    margin-top: 0; /* Remove margem do H2 */
    margin-bottom: 40px;
    font-weight: 700;
}

.pregao-subtitle {
    font-size: 1.6rem;
    color: #1e4799;
    font-weight: 600;
    margin-top: 0; /* Remove margem do H3 */
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.pregao-info {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 5px solid #1e4799;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.pregao-info p {
    margin: 8px 0;
    line-height: 1.7;
    color: #333;
    font-size: 0.95rem;
    text-align: justify; /* Justifica o texto */
}

.pregao-info p:first-child {
    margin-top: 0;
}

.pregao-info p:last-child {
    margin-bottom: 0;
}
.pregao-info p em { /* Estilo para o nome da interventora */
    display: block; /* Quebra linha antes do nome */
    margin-top: 10px;
    font-style: italic;
    color: #555;
}
.pregao-info a { /* Estilo para links dentro do info */
     color: #1e4799;
     font-weight: 600;
     text-decoration: none;
}
.pregao-info a:hover {
    text-decoration: underline;
}


.document-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
}

.document-list li {
    margin-bottom: 12px;
}

.document-list a {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
}

.document-list a:hover {
    background-color: #f7f7f7;
    border-color: #4db6ac;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Ícone de Download usando Font Awesome */
.document-list a .document-icon {
    margin-right: 10px;
    color: #1e4799; /* Cor do ícone */
    font-size: 1.1em; /* Tamanho do ícone */
    flex-shrink: 0; /* Evita que o ícone encolha */
}


hr.section-divider { /* Mantido */
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 60px auto; /* Aumenta o espaço */
    width: 80%;
}

/* Estilos para o botão "Clique aqui" (página 2025) */
.cta-container {
    margin-top: 30px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background-color: #1e4799;
    color: #ffffff;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #0f2c5d;
    color: #ffffff;
    transform: translateY(-2px);
}

/*
==============================================
--- ESTILOS DO RODAPÉ (PADRONIZADO) ---
==============================================
*/
.site-footer {
    background-color: #002d56;
    color: #a9d4f5;
    padding-top: 60px;
    font-size: 0.95rem;
    background-image: url(../imagens/rodapeazul.png);
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-column { flex: 1; min-width: 250px; }
.footer-column h3 { color: #ffffff; font-size: 1.3rem; margin-top: 0; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-column h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background-color: #4db6ac; }
.footer-logo { max-width: 300px; margin-bottom: 20px; border-radius: 8px; padding: 10px; }
.footer-about p { line-height: 1.7; margin-bottom: 20px; }
.footer-socials a { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; margin-right: 10px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.1); color: #ffffff; text-decoration: none; font-size: 1rem; transition: background-color 0.3s ease, transform 0.3s ease; }
.footer-socials a:hover { background-color: #4db6ac; transform: translateY(-2px); }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #a9d4f5; text-decoration: none; transition: color 0.3s ease, padding-left 0.3s ease; }
.footer-links a:hover { color: #ffffff; padding-left: 8px; }
.footer-contact p { display: flex; align-items: flex-start; margin-bottom: 15px; line-height: 1.6; }
.footer-contact i { color: #4db6ac; margin-right: 15px; margin-top: 5px; width: 20px; text-align: center; }
.footer-bottom { background-color: #001f3d; padding: 20px 0; border-top: 1px solid #004175; text-align: center; }
.footer-bottom p { margin: 0; color: #8cb6d9; font-size: 0.9rem; }


/*
==============================================
--- ESTILOS RESPONSIVOS (PADRONIZADOS) ---
==============================================
*/

/* Para tablets (992px) */
@media (max-width: 992px) {
    .header-top-bar-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-left { order: 0; }
    .header-right {
        order: 2;
        width: 100%;
        justify-content: space-between;
    }
    .mobile-menu-toggle {
        order: 1;
        display: block;
        margin-left: auto;
    }

    .search-input {
        width: 100%;
    }

    /* --- Menu Principal (Tablet/Mobile) --- */
    .header-main-nav > .container > ul {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0f2c5d;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        padding: 10px 0;
        gap: 0;
    }
    .header-main-nav.nav-active > .container > ul {
        display: flex;
    }
    .header-main-nav > .container > ul > li {
        text-align: left;
        width: 100%;
    }
    .header-main-nav a {
        padding: 12px 20px;
    }

    /* --- Dropdowns (Tablet/Mobile) --- */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: #1e4799;
        padding-left: 20px;
        min-width: unset;
        border-radius: 0;
        display: none;
    }
    .has-dropdown.active > .dropdown-menu {
        display: block;
    }
    .has-dropdown > a::after {
        content: '[+]';
        float: right;
        transform: none;
        font-size: 1rem;
        font-weight: bold;
    }
    .has-dropdown.active > a::after {
        content: '[\2212]'; /* Símbolo de menos */
    }

    /* Conteúdo Principal */
     main {
        margin: 30px auto;
        padding: 30px 15px;
    }
     .section-title {
        font-size: 2rem;
    }
    .pregao-subtitle {
        font-size: 1.4rem;
    }
}


/* Para celulares (768px) */
@media (max-width: 768px) {
    /* --- 1. Cabeçalho Responsivo --- */
    .header-top-bar-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .header-left {
        gap: 10px;
        flex-grow: 1;
        flex-basis: 60%;
    }
    .header-logo {
        height: 50px;
        border: 2px solid #fff;
    }
    .header-title {
        font-size: 0.9rem;
        white-space: normal;
        line-height: 1.3;
    }
    .mobile-menu-toggle {
        flex-basis: auto;
    }

    .header-right {
        display: flex;
        flex-direction: row;    
        flex-wrap: nowrap;      
        justify-content: center;
        align-items: center; 
        order: 2;
        width: 100%;
        margin-top: 15px;
        gap: 20px;
    }
    .header-socials {
        flex: 0 1 auto;
    }
    .search-form {
        flex: 1 1 auto;   
        max-width: 400px; 
    }
    .search-input {
        width: 100%;
    }

    /* --- 2. Conteúdo Responsivo --- */
    main {
        margin: 20px 10px; /* Reduz margens */
        padding: 20px 15px; /* Reduz padding */
        border-radius: 0; /* Remove borda arredondada */
    }

    .pregao-section {
        padding: 0 0 30px 0; /* Remove padding lateral, ajusta inferior */
        margin-bottom: 30px;
    }
    .section-title {
        font-size: 1.8rem; /* Título menor */
        margin-bottom: 30px;
    }
    .pregao-subtitle {
        font-size: 1.3rem; /* Subtítulo menor */
    }
    .pregao-info {
        padding: 20px; /* Menor padding */
        border-left-width: 4px; /* Borda esquerda mais fina */
    }
    .pregao-info p {
        font-size: 0.9rem; /* Texto menor */
        text-align: left; /* Alinha justificado pode ficar ruim no celular */
    }
    .document-list a {
        padding: 12px; /* Menor padding */
        font-size: 0.9rem;
    }
     .document-list a .document-icon {
        margin-right: 8px; /* Menor espaço para o ícone */
        font-size: 1em; /* Ícone um pouco menor */
    }
    /* Botão CTA responsivo */
    .cta-button {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 20px;
        font-size: 1rem;
    }

    hr.section-divider {
        margin: 40px auto;
    }


    /* --- 3. Rodapé Responsivo --- */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-contact p {
        justify-content: center;
        text-align: left;
    }
}