/* ============ SELEÇÃO DE SECCIONAL ============ */
body { margin: 0; padding: 0; font-family: 'Muli', 'Open Sans', Arial, sans-serif; background: #fafafa; }
.selecao-page * { box-sizing: border-box; }

.selecao-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    padding: 32px 32px 20px;
    position: relative;
    z-index: 10;
}

/* ============ MESH DECORATIVA (sutil) ============ */
.selecao-mesh {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.selecao-mesh::before, .selecao-mesh::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
}
.selecao-mesh::before {
    width: 600px; height: 600px;
    background: #ec5d4f;
    top: -200px; left: -150px;
}
.selecao-mesh::after {
    width: 500px; height: 500px;
    background: #f07d72;
    bottom: -180px; right: -120px;
}

.selecao-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 6vh;
}

/* ============ HEADER ============ */
.selecao-header {
    text-align: center;
    margin-bottom: 36px;
}
.selecao-header .selo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 11px;
    color: #888;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.selecao-header .selo i { color: #ec5d4f; font-size: 13px; }

/* Selo clicável da home: leva à seleção de seccional e, depois da escolha, de volta à home.
   Mantém o visual do selo e só ganha a indicação de ação e o realce no hover/foco. */
.selecao-header a.selo-trocar {
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.selecao-header a.selo-trocar:hover,
.selecao-header a.selo-trocar:focus-visible {
    color: #888;
    text-decoration: none;
    border-color: #ec5d4f;
    box-shadow: 0 4px 14px rgba(236, 93, 79, .15);
}
.selecao-header a.selo-trocar:focus-visible {
    outline: 2px solid #ec5d4f;
    outline-offset: 2px;
}
.selecao-header .selo-trocar-acao {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    padding-left: 10px;
    border-left: 1px solid #e8e8e8;
    color: #ec5d4f;
}
.selecao-header .selo-trocar-acao i {
    font-size: 12px;
    transition: transform .3s ease;
}
.selecao-header a.selo-trocar:hover .selo-trocar-acao i,
.selecao-header a.selo-trocar:focus-visible .selo-trocar-acao i {
    transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
    .selecao-header a.selo-trocar,
    .selecao-header .selo-trocar-acao i { transition: none; }
    .selecao-header a.selo-trocar:hover .selo-trocar-acao i,
    .selecao-header a.selo-trocar:focus-visible .selo-trocar-acao i { transform: none; }
}

.selecao-header h1 {
    margin: 0 0 6px;
    font-size: 32px;
    font-weight: 300;
    color: #1a1a1a;
    letter-spacing: -0.8px;
    line-height: 1.15;
}
.selecao-header h1 strong { font-weight: 700; color: #ec5d4f; }
.selecao-header p {
    margin: 0;
    color: #888;
    font-size: 14px;
    font-weight: 300;
}

/* ============ GRID HORIZONTAL — 3 colunas fixas ============ */
.seccional-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    width: 100%;
}

/* ============ CARD HORIZONTAL ============ */
.card-seccional {
    position: relative;
    background: #fff;
    border: 1.5px solid #ececec;
    border-radius: 16px;
    padding: 24px 26px;
    cursor: pointer;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    opacity: 0;
    transform: translateY(15px);
    animation: cardIn .5s ease forwards;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 128px;
}
.card-seccional:hover {
    transform: translateY(-4px);
    border-color: #ec5d4f;
    box-shadow: 0 12px 30px rgba(236, 93, 79, .18);
}
.card-seccional:hover .uf-ghost { color: rgba(236, 93, 79, .1); transform: translate(-50%, -50%) scale(1.05); }
.card-seccional:hover .card-link { color: #ec5d4f; }
.card-seccional:hover .card-link i { transform: translateX(4px); }

/* UF gigante fantasma no fundo do card */
.card-seccional .uf-ghost {
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translate(0, -50%);
    font-size: 140px;
    font-weight: 800;
    color: rgba(0, 0, 0, .035);
    letter-spacing: -4px;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 0;
    transition: color .3s ease, transform .3s ease;
}

.card-seccional .card-logo {
    flex: 0 0 128px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.card-seccional .card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.card-seccional .card-info {
    flex: 1;
    min-width: 0;
    z-index: 1;
}
.card-seccional .card-nome {
    font-size: 18px;
    font-weight: 700;
    color: #2a2a2a;
    margin: 0 0 4px;
    line-height: 1.15;
}
.card-seccional .card-uf {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.card-seccional .card-link {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .25s ease;
}
.card-seccional .card-link i { transition: transform .25s ease; font-size: 14px; }

/* ============ ANIMAÇÃO ENTRADA STAGGER ============ */
@keyframes cardIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.card-seccional:nth-child(1) { animation-delay: .05s; }
.card-seccional:nth-child(2) { animation-delay: .10s; }
.card-seccional:nth-child(3) { animation-delay: .15s; }
.card-seccional:nth-child(4) { animation-delay: .20s; }
.card-seccional:nth-child(5) { animation-delay: .25s; }
.card-seccional:nth-child(6) { animation-delay: .30s; }
.card-seccional:nth-child(7) { animation-delay: .35s; }
.card-seccional:nth-child(8) { animation-delay: .40s; }
.card-seccional:nth-child(9) { animation-delay: .45s; }
.card-seccional:nth-child(10) { animation-delay: .50s; }
.card-seccional:nth-child(n+11) { animation-delay: .55s; }

/* ============ RODAPÉ LÚDICO ============ */
.selecao-footer {
    margin-top: 32px;
    text-align: center;
    color: #999;
    font-size: 12px;
    letter-spacing: 0.8px;
}
.selecao-footer i { color: #ec5d4f; margin-right: 6px; }
.selecao-footer .versao {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #bbb;
}
.selecao-footer .copyright {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 0.3px;
    color: #999;
}
.selecao-footer .copyright a {
    color: #999;
    text-decoration: none;
    transition: color .2s ease;
}
.selecao-footer .copyright a:hover {
    color: #ec5d4f;
    text-decoration: underline;
}

/* ============ RESPONSIVO ============ */
@media (max-width: 900px) {
    .seccional-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .selecao-page { padding: 24px 16px 16px; }
    .selecao-header h1 { font-size: 24px; }
    .selecao-header p { font-size: 13px; }
    .selecao-header { margin-bottom: 24px; }
    .seccional-grid { grid-template-columns: 1fr; gap: 12px; }
    .card-seccional { padding: 14px 16px; min-height: 80px; }
    .card-seccional .uf-ghost { font-size: 80px; right: -4px; }
    .card-seccional .card-logo { flex-basis: 80px; height: 48px; }
    .selecao-footer { margin-top: 24px; }
}

/* Esconde a caixa global de mensagens do template */
#mensagens-sistema { display: none !important; }
