/* ====== PROJETOS.CSS - RESPONSIVIDADE COMPLETA ====== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Cores - Padrão Index */
    --primary-green: #0c4b32;
    --accent-yellow: #caa349;
    --accent-gold: #caa349;
    --bg-gray: #edf1ed;
    --bg-surface: #f6f8f4;
    --text-dark: #121f1a;
    --text-muted: #5e6b66;
    --border-color: rgba(18, 33, 27, 0.12);
    --shadow: 0 16px 45px rgba(18, 33, 27, 0.08);
    --dark-blue: #0f2c25;
    --text-light: #8b9a92;
    
    /* Status Colors */
    --status-andamento: #f59e0b;
    --status-planeado: #8b5cf6;
    --status-concluido: #10b981;
    
    /* Category Colors */
    --cat-infra: #3b82f6;
    --cat-educacao: #ec4899;
    --cat-saneamento: #06b6d4;
    --cat-comercio: #f97316;
    --cat-urbanismo: #6366f1;
    --cat-ambiental: #22c55e;
    --cat-logistica: #64748b;
    
    /* Breakpoints */
    --bp-sm: 480px;
    --bp-md: 768px;
    --bp-lg: 992px;
    --bp-xl: 1200px;
    
    /* Border Radius */
    --br-sm: 8px;
    --br-md: 12px;
    --br-lg: 20px;
    --br-xl: 28px;
    --br-2xl: 36px;
    --br-3xl: 48px;
    --br-4xl: 56px;
}
/* ====== RESET & BASE ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background: var(--bg-surface); color: var(--text-dark); overflow-x: hidden; -webkit-font-smoothing: antialiased; line-height: 1.6; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ====== SPLASH SCREEN ====== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease-out, visibility 0.7s ease-out;
}

#splash-screen.hide { opacity: 0; visibility: hidden; }
.splash-content { text-align: center; color: white; }
.splash-content img { width: 150px; height: auto; margin-bottom: 20px; background: transparent; display: inline-block; animation: splashLogoIn 0.8s ease-out 0.3s both; }
.splash-content h1 { font-size: 2.5rem; margin-bottom: 10px; font-weight: 800; }
.splash-content p { font-size: 1.2rem; letter-spacing: 1px; }

@keyframes splashLogoIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ====== BREADCRUMB ====== */
.breadcrumb {
    background: #f8f9fa;
    padding: 1.2rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
}
.breadcrumb .container { padding: 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--text-muted); margin-left: 0.5rem; }
.breadcrumb a { color: var(--primary-green); text-decoration: none; font-weight: 500; transition: all 0.3s ease; }
.breadcrumb a:hover { color: #093d2a; text-decoration: underline; }
.breadcrumb li:last-child { color: var(--text-muted); font-weight: 600; }

/* ====== HEADER SEÇÃO ====== */
.projetos-header {
    padding: 60px 20px 40px;
    background: linear-gradient(to bottom, var(--bg-surface), #fff);
    text-align: center;
}

.projetos-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.projetos-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* ====== FILTROS SEÇÃO ====== */
.filtros-container {
    padding: 30px 20px;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 40px;
}

.filtro-group {
    display: inline-block;
    margin-right: 30px;
    margin-bottom: 15px;
}

.filtro-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.filtro-group select {
    padding: 12px 18px;
    border: 1px solid #e5e7eb;
    border-radius: var(--br-md);
    background: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.filtro-group select:hover {
    border-color: var(--primary-green);
}

.filtro-group select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(12, 75, 50, 0.1);
}

/* ====== GRID DE PROJETOS ====== */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    list-style: none;
}

/* ====== PROJETO CARD ====== */
.projeto-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: var(--br-3xl);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.projeto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Card Image */
.card-img {
    position: relative;
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: #e5e7eb;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

/* Category Badges */
.categoria-infra { background: rgba(59, 130, 246, 0.9); color: #fff; }
.categoria-educacao { background: rgba(236, 72, 153, 0.9); color: #fff; }
.categoria-saneamento { background: rgba(6, 182, 212, 0.9); color: #fff; }
.categoria-comercio { background: rgba(249, 115, 22, 0.9); color: #fff; }
.categoria-urbanismo { background: rgba(99, 102, 241, 0.9); color: #fff; }
.categoria-ambiental { background: rgba(34, 197, 94, 0.9); color: #fff; }
.categoria-logistica { background: rgba(100, 116, 139, 0.9); color: #fff; }

/* Status Badges */
.status-andamento { background: rgba(245, 158, 11, 0.9); color: #fff; }
.status-planeado { background: rgba(139, 92, 246, 0.9); color: #fff; }
.status-concluido { background: rgba(16, 185, 129, 0.9); color: #fff; }

.badge i {
    margin-right: 4px;
}

/* Card Info */
.card-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.projeto-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.location {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.projeto-card > .card-info > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Progress Bar */
.progress-wrapper {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.progress-labels span:first-child {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-labels span:last-child {
    color: var(--primary-green);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-yellow));
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* ====== FOOTER ====== */
footer {
    background: var(--dark-blue);
    color: #fff;
    padding: 70px 0 30px;
    position: relative;
    margin-top: 50px;
}

/* ====== RESPONSIVIDADE - 1200px ====== */
@media (max-width: 1200px) {
    .projetos-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
    .projetos-header { padding: 50px 20px 35px; }
    .projetos-header h1 { font-size: 2.5rem; }
    .projetos-header p { font-size: 1rem; max-width: 650px; }
}

/* ====== RESPONSIVIDADE - 992px ====== */
@media (max-width: 992px) {
    .projetos-header { padding: 40px 20px 30px; }
    .projetos-header h1 { font-size: 2.2rem; margin-bottom: 15px; }
    .projetos-header p { font-size: 0.95rem; max-width: 600px; margin-bottom: 30px; }
    .filtros-container { padding: 25px 20px; margin-bottom: 30px; }
    .filtro-group { margin-right: 25px; margin-bottom: 12px; }
    .filtro-group select { padding: 10px 14px; font-size: 0.9rem; }
    .projetos-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; padding: 30px 20px; }
    .card-img { height: 220px; padding: 18px; }
    .badge { font-size: 0.7rem; padding: 6px 12px; }
    .card-info { padding: 25px; }
    .projeto-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
    .location { font-size: 0.9rem; margin-bottom: 12px; }
    .projeto-card > .card-info > p { font-size: 0.9rem; margin-bottom: 20px; }
    .progress-labels { font-size: 0.8rem; margin-bottom: 8px; }
    .progress-bar { height: 5px; }
}

/* ====== RESPONSIVIDADE - 768px ====== */
@media (max-width: 768px) {
    .projetos-header { padding: 35px 20px 25px; }
    .projetos-header h1 { font-size: 2rem; margin-bottom: 12px; }
    .projetos-header p { font-size: 0.9rem; margin-bottom: 25px; }
    .breadcrumb { padding: 1rem 0; font-size: 0.85rem; }
    .filtros-container { padding: 20px 15px; margin-bottom: 25px; }
    .filtro-group { margin-right: 20px; margin-bottom: 10px; }
    .filtro-group label { font-size: 0.8rem; margin-bottom: 8px; }
    .filtro-group select { padding: 10px 12px; font-size: 0.85rem; }
    .projetos-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 25px 15px; }
    .card-img { height: 200px; padding: 16px; }
    .badge { font-size: 0.65rem; padding: 5px 10px; }
    .card-info { padding: 20px; }
    .projeto-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
    .location { font-size: 0.85rem; margin-bottom: 10px; }
    .projeto-card > .card-info > p { font-size: 0.85rem; margin-bottom: 15px; }
    .progress-wrapper { margin-top: auto; padding-top: 15px; }
    .progress-labels { font-size: 0.75rem; margin-bottom: 6px; }
    .progress-bar { height: 4px; }
}

/* ====== RESPONSIVIDADE - 576px ====== */
@media (max-width: 576px) {
    .projetos-header { padding: 30px 15px 20px; }
    .projetos-header h1 { font-size: 1.7rem; margin-bottom: 10px; }
    .projetos-header p { font-size: 0.85rem; margin-bottom: 20px; line-height: 1.5; }
    .breadcrumb { padding: 0.8rem 0; font-size: 0.8rem; }
    .breadcrumb li { flex-wrap: wrap; }
    .filtros-container { padding: 18px 12px; margin-bottom: 20px; }
    .filtro-group { margin-right: 15px; margin-bottom: 8px; display: block; }
    .filtro-group label { font-size: 0.75rem; margin-bottom: 6px; }
    .filtro-group select { padding: 8px 10px; font-size: 0.8rem; width: auto; }
    .projetos-grid { grid-template-columns: 1fr; gap: 15px; padding: 20px 12px; }
    .card-img { height: 180px; padding: 14px; }
    .badge { font-size: 0.6rem; padding: 4px 8px; }
    .card-info { padding: 18px; }
    .projeto-card h3 { font-size: 0.95rem; margin-bottom: 7px; }
    .location { font-size: 0.8rem; margin-bottom: 8px; }
    .projeto-card > .card-info > p { font-size: 0.8rem; margin-bottom: 12px; line-height: 1.5; }
    .progress-wrapper { margin-top: auto; padding-top: 12px; border-top: 1px solid #f3f4f6; }
    .progress-labels { font-size: 0.7rem; margin-bottom: 5px; }
    .progress-bar { height: 4px; }
}

/* ====== RESPONSIVIDADE - 480px ====== */
@media (max-width: 480px) {
    .projetos-header { padding: 25px 12px 18px; }
    .projetos-header h1 { font-size: 1.5rem; margin-bottom: 8px; }
    .projetos-header p { font-size: 0.8rem; margin-bottom: 18px; line-height: 1.4; }
    .breadcrumb { padding: 0.7rem 0; font-size: 0.75rem; }
    .filtros-container { padding: 15px 10px; margin-bottom: 18px; }
    .filtro-group { margin-right: 12px; margin-bottom: 6px; }
    .filtro-group label { font-size: 0.7rem; margin-bottom: 5px; }
    .filtro-group select { padding: 7px 8px; font-size: 0.75rem; }
    .projetos-grid { grid-template-columns: 1fr; gap: 12px; padding: 18px 10px; }
    .card-img { height: 160px; padding: 12px; }
    .badge { font-size: 0.55rem; padding: 3px 6px; }
    .card-info { padding: 16px; }
    .projeto-card h3 { font-size: 0.9rem; margin-bottom: 6px; }
    .location { font-size: 0.75rem; margin-bottom: 6px; }
    .projeto-card > .card-info > p { font-size: 0.75rem; margin-bottom: 10px; line-height: 1.4; }
    .progress-wrapper { padding-top: 10px; }
    .progress-labels { font-size: 0.65rem; margin-bottom: 4px; }
    .progress-bar { height: 3px; }
}

@media (max-width: 768px) {
    #splash-screen {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        padding: 20px;
    }
    .splash-content h1 { font-size: 24px; line-height: 1.3; }
    .splash-content p { font-size: 14px; }
}

