/* ============================================
   MDB em Movimento — CSS Custom
   Paleta: Laranja #F58220 / Off-white / Grafite
   ============================================ */

:root {
    --mdb-orange: #F58220;
    --mdb-orange-dark: #D96A14;
    --mdb-orange-light: #FFB070;
    --mdb-graphite: #1F2937;
    --mdb-cream: #F7F5F2;
    --mdb-gray-100: #F3F4F6;
    --mdb-gray-200: #E5E7EB;
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body { font-family: 'Inter', sans-serif; }

/* ============ NAVBAR ============ */
#main-nav {
    background: rgba(247, 245, 242, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
#main-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

/* ============ FRENTE CARDS (O que muda) ============ */
.frente-card {
    background: var(--mdb-cream);
    border-radius: 16px;
    padding: 1.75rem;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}
.frente-card:hover {
    border-color: var(--mdb-orange);
    background: white;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(245, 130, 32, 0.2);
}
.frente-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--mdb-orange), var(--mdb-orange-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.frente-card h4 {
    font-weight: 800;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--mdb-graphite);
}
.frente-card p {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
}

/* ============ ARCH CARDS (Arquitetura) ============ */
.arch-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}
.arch-card:hover {
    border-color: var(--mdb-orange);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1);
}
.arch-card-highlight {
    background: linear-gradient(135deg, var(--mdb-orange), var(--mdb-orange-dark));
    color: white;
    box-shadow: 0 12px 32px -8px rgba(245, 130, 32, 0.4);
}
.arch-card-highlight:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px -12px rgba(245, 130, 32, 0.5);
}
.arch-num {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--mdb-orange);
    margin-bottom: 0.5rem;
}
.arch-card-highlight .arch-num { color: rgba(255,255,255,0.8); }
.arch-i {
    font-size: 2rem;
    color: var(--mdb-orange);
    margin-bottom: 0.75rem;
    display: block;
}
.arch-card-highlight .arch-i { color: white; }
.arch-card h4 {
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--mdb-graphite);
}
.arch-card-highlight h4 { color: white; }
.arch-card p {
    font-size: 0.75rem;
    color: #6B7280;
    line-height: 1.4;
}
.arch-card-highlight p { color: rgba(255,255,255,0.85); }

/* ============ MUNI BARS (Top municípios) ============ */
.muni-bar {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    align-items: center;
}
.muni-name {
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    text-align: right;
}
.muni-fill {
    background: linear-gradient(90deg, var(--mdb-orange), var(--mdb-orange-dark));
    border-radius: 8px;
    padding: 0.625rem 1rem;
    width: var(--w);
    min-width: 200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}
.muni-fill:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px -4px rgba(245,130,32,0.4);
}
.muni-tag {
    background: rgba(0,0,0,0.2);
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}
@media (max-width: 640px) {
    .muni-bar { grid-template-columns: 1fr; gap: 0.25rem; }
    .muni-name { text-align: left; }
    .muni-fill { width: 100% !important; min-width: auto; }
}

/* ============ REGION CARDS ============ */
.region-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border-top: 4px solid var(--mdb-orange);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.region-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.1);
}
.region-badge {
    display: inline-block;
    background: var(--mdb-orange)/10;
    background: rgba(245, 130, 32, 0.1);
    color: var(--mdb-orange-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.region-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--mdb-graphite);
    margin-bottom: 0.5rem;
}
.region-cities {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.region-stat {
    border-top: 1px solid var(--mdb-gray-200);
    padding-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mdb-orange-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============ NUCLEO CARDS ============ */
.nucleo-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.nucleo-card:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: var(--mdb-orange);
    box-shadow: 0 16px 32px -8px rgba(245,130,32,0.2);
}
.nucleo-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}
.nucleo-card h4 {
    font-weight: 800;
    font-size: 0.875rem;
    color: var(--mdb-graphite);
    line-height: 1.3;
}
.nucleo-card-empty {
    background: linear-gradient(135deg, var(--mdb-orange), var(--mdb-orange-dark));
    color: white;
    box-shadow: 0 12px 24px -8px rgba(245,130,32,0.3);
}
.nucleo-card-empty .nucleo-icon { color: white; font-weight: 900; }
.nucleo-card-empty h4 { color: white; font-size: 0.8rem; }

/* ============ COMPOSIÇÃO PADRÃO ============ */
.comp-item {
    background: var(--mdb-cream);
    border-radius: 12px;
    padding: 1.25rem 0.75rem;
}
.comp-item-total {
    background: var(--mdb-orange);
    color: white;
}
.comp-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--mdb-orange);
    line-height: 1;
}
.comp-item-total .comp-num { color: white; }
.comp-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}
.comp-item-total .comp-label { color: rgba(255,255,255,0.9); }

/* ============ AGENDA ITEMS ============ */
.agenda-item {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-left: 4px solid var(--mdb-orange);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.agenda-item:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 20px -4px rgba(245,130,32,0.15);
}
.agenda-item-alt {
    border-left-color: var(--mdb-graphite);
}
.agenda-item-alt:hover {
    box-shadow: 0 8px 20px -4px rgba(31,41,55,0.15);
}
.agenda-icon {
    width: 40px;
    height: 40px;
    background: rgba(245,130,32,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mdb-orange);
    flex-shrink: 0;
    font-size: 1.125rem;
}
.agenda-item-alt .agenda-icon {
    background: rgba(31,41,55,0.08);
    color: var(--mdb-graphite);
}
.agenda-item h4 {
    font-weight: 800;
    font-size: 1rem;
    color: var(--mdb-graphite);
    margin-bottom: 0.125rem;
}
.agenda-item p {
    font-size: 0.8rem;
    color: #6B7280;
}

/* ============ ROADMAP ============ */
.roadmap-item {
    position: relative;
    padding-left: 1rem;
}
.roadmap-num {
    position: absolute;
    left: -2.625rem;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: white;
    color: var(--mdb-orange-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.75rem;
    border: 3px solid var(--mdb-orange);
    z-index: 1;
}
@media (min-width: 768px) {
    .roadmap-num {
        left: -3.625rem;
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
}
.roadmap-item h4 {
    font-weight: 800;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: white;
}
.roadmap-item p {
    color: #9CA3AF;
    font-size: 0.875rem;
}
.roadmap-num-final {
    width: 2.5rem !important;
    height: 2.5rem !important;
    background: var(--mdb-orange) !important;
    color: white !important;
    left: -3rem !important;
    top: 0.5rem !important;
}
@media (min-width: 768px) {
    .roadmap-num-final {
        width: 3rem !important;
        height: 3rem !important;
        left: -4rem !important;
    }
}

/* ============ RISK CARDS ============ */
.risk-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid var(--mdb-gray-200);
    transition: all 0.3s ease;
}
.risk-card:hover {
    border-color: #FCA5A5;
    background: #FEF2F2;
}
.risk-icon {
    width: 48px;
    height: 48px;
    background: #FEE2E2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EF4444;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.risk-card h4 {
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--mdb-graphite);
    margin-bottom: 0.5rem;
}
.risk-card p {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
}

/* ============ LÍDER ITEMS ============ */
.lider-item {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.lider-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(245,130,32,0.2);
}
.lider-item > i {
    color: var(--mdb-orange);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
.lider-item h4 {
    font-weight: 800;
    font-size: 1rem;
    color: var(--mdb-graphite);
    margin-bottom: 0.125rem;
}
.lider-item p {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.4;
}

/* ============ ANIMATIONS ============ */
@keyframes pulse-orange {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 130, 32, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(245, 130, 32, 0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--mdb-cream); }
::-webkit-scrollbar-thumb { background: var(--mdb-orange); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--mdb-orange-dark); }

/* ============ SELECTION ============ */
::selection { background: var(--mdb-orange); color: white; }

/* ============ RESPONSIVE TWEAKS ============ */
@media (max-width: 768px) {
    h1, h2 { word-break: break-word; }
}
