/* ====================================================================
   Divisão Municipal de Fiscalização - Tema Dark Glow Moderno
   ==================================================================== */

:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --accent: #38bdf8;
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.75);
    --card-hover: rgba(30, 41, 59, 0.95);
    --border-color: rgba(56, 189, 248, 0.2);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glow: rgba(56, 189, 248, 0.15);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color) !important;
    color: var(--text-main) !important;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 0;
}

/* Efeitos de Luz de Fundo (Glow Background) */
.bg-glow-1 {
    position: fixed;
    top: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: rgba(2, 132, 199, 0.22);
    filter: blur(120px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.bg-glow-2 {
    position: fixed;
    top: 30%;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(56, 189, 248, 0.15);
    filter: blur(150px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

header, main, footer {
    position: relative;
    z-index: 10;
}

/* --- BANNER DA PÁGINA (HERO) --- */
.page-header-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 132, 199, 0.25) 100%) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 36px 16px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.container-header-content {
    max-width: 1100px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 14px;
}

.btn-back-clean {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-back-clean:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(30, 41, 59, 0.9);
    transform: translateX(-4px);
    box-shadow: 0 6px 20px var(--glow);
}

.page-header-banner h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

.page-header-banner p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    max-width: 800px;
}

/* --- CONTAINER PRINCIPAL --- */
.container-principal {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 40px 16px;
}

.secao-home {
    margin-bottom: 32px;
}

.titulo-secao-interna {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
    position: relative;
    padding-bottom: 8px;
}

.titulo-secao-interna::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* --- GRADE DE CARDS (MOBILE FIRST: 1 COLUNA) --- */
.grid-servicos-sociais {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.card-servico-social {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 22px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-servico-social i {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 12px;
    display: inline-block;
    background: rgba(2, 132, 199, 0.15);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.card-servico-social:hover i {
    transform: scale(1.1) rotate(3deg);
}

.card-servico-social h3 {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 6px;
    font-weight: 700;
}

.card-servico-social p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.card-servico-social:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.5);
    background: var(--card-hover);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.2);
}

/* --- PAINEL INFORMATIVO --- */
.painel-informativo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-bloco-texto h2 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.info-bloco-texto p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* --- LISTA DETALHADA COM ÍCONES --- */
.lista-beneficios-detalhada {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-beneficios-detalhada li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.lista-beneficios-detalhada li i {
    color: #34d399;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.lista-beneficios-detalhada strong {
    color: var(--text-main);
}

/* --- CAIXA DE DESTAQUE LATERAL (ATENDIMENTO) --- */
.info-bloco-card-destaque {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
}

.caixa-atendimento-card i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.caixa-atendimento-card h4 {
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.caixa-atendimento-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.caixa-atendimento-card strong {
    color: var(--text-main);
}

/* --- RODAPÉ --- */
footer {
    width: 100%;
    background-color: #0b1329 !important;
    color: var(--text-muted) !important;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
}

/* ==========================================================================
   BREAKPOINTS: TABLETS E DESKTOPS (min-width)
   ========================================================================== */

@media screen and (min-width: 768px) {
    .page-header-banner {
        padding: 40px 24px;
    }

    .page-header-banner h1 {
        font-size: 2.1rem;
    }

    .container-principal {
        padding: 0 24px 60px 24px;
    }

    .grid-servicos-sociais {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .painel-informativo {
        grid-template-columns: 1.4fr 1fr;
        padding: 32px;
        gap: 30px;
        align-items: center;
    }

    .info-bloco-texto h2 {
        font-size: 1.35rem;
    }
}