/* ===== VARIÁVEIS DE TEMA ===== */
:root {
    /* Paleta - Nova logo SEI Palmas */
    --azul:          #111452;
    --azul-medio:    #1b2d7a;
    --azul-claro:    #2a4ecb;
    --azul-hover:    #0b0e3d;
    --amarelo:       #f5c518;
    --amarelo-hover: #d4a800;
    --amarelo-light: rgba(245, 197, 24, 0.15);

    /* Tema claro */
    --bg-primary:    #f4f6fb;
    --bg-secondary:  #ffffff;
    --bg-card:       #ffffff;
    --text-primary:  #111435;
    --text-secondary:#4a5568;
    --text-muted:    #8a9ab5;
    --border-color:  #dde3ef;

    /* Navbar (azul institucional) */
    --navbar-bg:     #111452;
    --navbar-text:   #e8f0fb;

    /* Accent */
    --accent:        #1b2d7a;
    --accent-hover:  #111452;
    --accent-light:  #e6eef8;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(17, 20, 82, 0.08);
    --shadow-md: 0 4px 16px rgba(17, 20, 82, 0.12);
    --shadow-lg: 0 8px 28px rgba(17, 20, 82, 0.18);

    /* Rodapé */
    --footer-bg-start: #0d0f3a;
    --footer-bg-end:   #08091f;
    --footer-text:     #cdd8ef;
    --footer-border:   rgba(200, 220, 255, 0.2);
    --footer-heading:  #f0f5ff;
}

body.dark {
    --bg-primary:    #111827;
    --bg-secondary:  #1a2336;
    --bg-card:       #1e2d45;
    --text-primary:  #e4ecf7;
    --text-secondary:#9daec8;
    --text-muted:    #6b7fa0;
    --border-color:  #2d3f60;
    --navbar-bg:     #0a0c30;
    --navbar-text:   #ccd8f0;
    --accent-light:  #1b2f52;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.28);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.45);
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: var(--navbar-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.navbar-content {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.navbar .nav-links li a {
    color: var(--navbar-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.navbar .nav-links li a:hover {
    background-color: rgba(245, 197, 24, 0.18);
    color: var(--amarelo);
}

.logo-pref {
    height: 52px;
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
}

.logo-sei {
    height: 60px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

/* Botão tema */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--navbar-text);
    cursor: pointer;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
}

.theme-toggle:hover {
    background: rgba(245, 197, 24, 0.25);
    border-color: var(--amarelo);
    color: var(--amarelo);
}

/* ===== HERO ===== */
.hero {
    background-color: var(--azul);
    padding: 0;
}

.hero-image {
    position: relative;
    width: 100%;
    min-height: clamp(320px, 34vw, 480px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2.8rem 2rem;
    color: #fff;
    overflow: hidden;
    background-color: var(--azul);
    animation: fadeIn 1.2s ease-in-out;
}

/* Gradiente sobre as fotos: azul institucional suave */
.hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(17, 20, 82, 0.45) 0%,
        rgba(8, 9, 40, 0.68) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Linha decorativa amarela no topo do hero */
.hero-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--amarelo);
    z-index: 3;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: var(--hero-position, center center);
    background-repeat: no-repeat;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-image > *:not(.hero-slides) {
    position: relative;
    z-index: 2;
}

.hero-logo {
    height: 120px;
    width: auto;
    display: block;
    margin: 0 auto 1rem;
    filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    animation: slideDown 1s ease-out;
}

.hero-logo-pref {
    height: 100px;
    width: auto;
    display: block;
    margin: 0 auto 0.8rem;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    animation: slideDown 1.05s ease-out;
}

.hero-image h1 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 0.7rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
    animation: slideDown 1.1s ease-out;
}

.hero-image h1 span {
    color: #2a4ecb;
}

.hero-image p {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    max-width: 600px;
    margin: 0 auto 1.6rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    opacity: 0.92;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
    animation: slideUp 1.1s ease-out;
}

/* Badge decorativo abaixo do subtítulo */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 197, 24, 0.18);
    border: 1px solid rgba(245, 197, 24, 0.45);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: slideUp 1.2s ease-out;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-36px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(36px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ===== SEPARADOR DECORATIVO ===== */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, var(--azul) 0%, var(--amarelo) 50%, var(--azul) 100%);
    opacity: 0.3;
}

/* ===== SEÇÃO ACESSOS ===== */
.section-acessos {
    background-color: var(--bg-primary);
    padding: 56px 20px;
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.acesso-externo,
.acesso-interno {
    width: 100%;
    max-width: 430px;
    padding: 36px;
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--azul);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.acesso-interno {
    border-top-color: var(--amarelo);
}

.acesso-externo:hover,
.acesso-interno:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.acesso-externo h2,
.acesso-interno h2 {
    font-size: 1.35rem;
    margin-bottom: 6px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.acesso-externo h2 i.bi {
    color: var(--azul);
    font-size: 1.3em;
}

body.dark .acesso-externo h2 i.bi {
    color: #6fa8dc;
}

.acesso-interno h2 i.bi {
    color: var(--amarelo-hover);
    font-size: 1.3em;
}

body.dark .acesso-interno h2 i.bi {
    color: var(--amarelo);
}

body.dark .acesso-interno button {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark .acesso-interno button:first-child {
    background-color: var(--amarelo);
    color: #111452;
    border-color: var(--amarelo);
}

body.dark .acesso-interno button:not(:first-child):hover {
    background-color: var(--accent-light);
    border-color: var(--azul-claro);
    color: var(--text-primary);
}

body.dark .acesso-externo button:not(:first-child) {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark .acesso-externo button:not(:first-child):hover {
    background-color: var(--accent-light);
    border-color: var(--azul-claro);
    color: var(--text-primary);
}

.acesso-externo > p,
.acesso-interno > p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 22px;
    font-weight: 400;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

/* Botões do card — base */
.acesso-externo button,
.acesso-interno button {
    border: none;
    padding: 14px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.01em;
}

/* Acesso Externo: azul sólido com hover amarelo */
.acesso-externo button {
    background-color: var(--azul);
    color: #fff;
    border: 2px solid transparent;
}

.acesso-externo button:hover {
    background-color: #fff;
    color: var(--azul);
    border-color: var(--azul);
}

/* Acesso Externo: segundo botão igual ao estilo cinza do acesso interno */
.acesso-externo button:not(:first-child) {
    background-color: var(--bg-primary);
    color: var(--azul);
    border: 2px solid var(--border-color);
}

.acesso-externo button:not(:first-child):hover {
    background-color: var(--accent-light);
    border-color: var(--azul-claro);
    color: var(--azul);
}

/* Acesso Interno: contorno azul com preenchimento amarelo no hover */
.acesso-interno button {
    background-color: var(--bg-primary);
    color: var(--azul);
    border: 2px solid var(--border-color);
}

.acesso-interno button:first-child {
    background-color: var(--amarelo);
    color: var(--azul);
    border-color: var(--amarelo);
    font-weight: 700;
}

.acesso-interno button:first-child:hover {
    background-color: var(--amarelo-hover);
    border-color: var(--amarelo-hover);
    box-shadow: 0 4px 14px rgba(245, 197, 24, 0.4);
    transform: translateY(-1px);
}

.acesso-interno button:not(:first-child):hover {
    background-color: var(--accent-light);
    border-color: var(--azul-claro);
    color: var(--azul);
}

.acesso-externo button a,
.acesso-interno button a {
    text-decoration: none;
    color: inherit;
    flex: 1;
    text-align: center;
}

/* ===== SECTION TITLE COMPARTILHADO ===== */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
    position: relative;
}

.section-heading::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--amarelo);
    border-radius: 2px;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-heading i.bi {
    color: var(--azul-claro);
    font-size: 1.3em;
}

/* ===== SERVIÇOS (OUTROS) ===== */
.section-outros {
    background-color: var(--bg-primary);
    padding: 64px 20px 48px;
}

.section-outros:nth-child(even) {
    background-color: var(--bg-secondary);
}

.Outros {
    max-width: 1200px;
    margin: 0 auto;
}

.Outros h2 {
    font-size: 1.6rem;
    margin-bottom: 48px;
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.Outros h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    background: var(--amarelo);
    border-radius: 2px;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.Outros h2 i.bi {
    color: var(--azul-claro);
    font-size: 1.3em;
}

.others-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
}

/* Cards de serviço — design minimalista */
.Outros button {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 28px 16px 22px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.28s ease;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 130px;
    font-weight: 600;
    font-size: 0.83rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

/* Descrição discreta dentro dos cards de serviço */
.card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.35;
    margin-top: -4px;
}

@media (max-width: 600px) {
    .card-desc { display: none; }
}

/* Faixa azul no topo do card */
.Outros button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--azul);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.Outros button:hover {
    border-color: var(--amarelo);
    background-color: var(--bg-card);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.Outros button:hover::before {
    opacity: 0;
}

/* Ícone muda para amarelo no hover */
.Outros button i.bi {
    font-size: 2rem;
    color: var(--azul-claro);
    transition: color 0.28s ease, transform 0.28s ease;
}

.Outros button:hover i.bi {
    color: var(--amarelo-hover);
    transform: scale(1.15);
}

.Outros button a {
    text-decoration: none;
    color: inherit;
}

/* ===== CARROSSEL ===== */
.section-carousel {
    background-color: var(--bg-secondary);
    padding: 64px 20px 48px;
    border-top: 1px solid var(--border-color);
}

.carousel-container {
    overflow: hidden;
}

.carousel {
    max-width: 1200px;
    margin: 0 auto;
}

.carousel h2 {
    font-size: 1.6rem;
    margin-bottom: 48px;
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.carousel h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    background: var(--amarelo);
    border-radius: 2px;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.carousel h2 i.bi {
    color: var(--azul-claro);
    font-size: 1.3em;
}

.carousel-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 0.87rem;
    white-space: nowrap;
}

.carousel-button i.bi {
    color: var(--azul-claro);
    transition: color 0.25s ease;
}

.carousel-button:hover {
    background: var(--azul);
    border-color: var(--azul);
    color: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.carousel-button:hover i.bi {
    color: var(--amarelo);
}

/* faixa estatica: itens quebram em linhas, sem rolagem automatica */
.carousel-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 16px 0;
}

.carousel-container::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: var(--azul);
    border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-thumb:hover {
    background: var(--azul-hover);
}

.carousel-container button {
    flex: 0 0 auto;
    background-color: var(--azul);
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.88rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-container button:hover {
    background-color: var(--amarelo);
    color: var(--azul);
    box-shadow: 0 4px 14px rgba(245, 197, 24, 0.35);
    transform: translateY(-2px);
}

.carousel-container button a {
    color: inherit;
    text-decoration: none;
}

/* ===== RODAPÉ ===== */
.footer {
    margin-top: auto;
    padding: clamp(40px, 4.5vw, 58px) 20px 22px;
    background:
        radial-gradient(circle at 10% -15%, rgba(27, 45, 122, 0.28), transparent 50%),
        radial-gradient(circle at 92% 5%,  rgba(245, 197, 24, 0.06),  transparent 40%),
        linear-gradient(180deg, #0d0f3a 0%, #08091f 100%);
    color: var(--footer-text);
}

.footer-content {
    max-width: 1220px;
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(20px, 3vw, 52px);
}

.footer-section h3 {
    color: var(--footer-heading);
    font-size: 1.1rem;
    margin-bottom: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(245, 197, 24, 0.35);
    display: inline-block;
}

.footer-section p {
    font-size: 0.88rem;
    line-height: 1.85;
    color: rgba(205, 216, 239, 0.82);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links li a {
    color: rgba(205, 216, 239, 0.82);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links li a::before {
    content: "›";
    color: var(--amarelo);
    font-weight: 700;
}

.footer-links li a:hover {
    color: var(--amarelo);
}

.footer-bottom {
    max-width: 1220px;
    margin: 0 auto;
    border-top: 1px solid var(--footer-border);
    padding-top: 20px;
    text-align: center;
    color: rgba(180, 200, 235, 0.65);
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Ícones gerais */
i.bi {
    display: inline-block;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .navbar-content {
        height: auto;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
    }

    .navbar-brand {
        justify-content: center;
    }

    .navbar .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        width: 100%;
        padding-bottom: 0.4rem;
    }

    .hero-image {
        min-height: 300px;
        padding: 2rem 1.2rem;
    }

    .hero-logo {
        height: 90px;
    }

    .hero-image h1 {
        font-size: 1.9rem;
        letter-spacing: 1.5px;
    }

    .hero-image p {
        font-size: 0.97rem;
    }

    .logo-pref {
        height: 38px;
    }

    .logo-sei {
        height: 42px;
    }

    .section-acessos {
        padding: 36px 16px;
    }

    .acesso-externo,
    .acesso-interno {
        max-width: 100%;
    }

    .others-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .carousel-container {
        overflow-x: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 480px) {
    .hero-image {
        min-height: 260px;
        padding: 1.5rem 1rem;
    }

    .hero-logo {
        height: 72px;
    }

    .hero-image h1 {
        font-size: 1.65rem;
        letter-spacing: 1px;
    }

    .navbar .nav-links li a {
        font-size: 0.82rem;
        padding: 5px 10px;
    }

    .logo-pref {
        height: 32px;
    }

    .logo-sei {
        height: 36px;
    }

    .others-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ── Página de Atendimento ── */
  .orgaos-container {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem 0;
  }

  .orgao-card {
      background: var(--bg-card);
      color: var(--text-primary);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 1.5rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      transition: transform 0.2s, box-shadow 0.2s;
  }

  .orgao-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 18px rgba(0,0,0,0.14);
  }

  .orgao-card h2 {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 1rem;
      color: var(--accent-color, var(--text-primary));
      border-bottom: 2px solid var(--border-color);
      padding-bottom: 0.5rem;
  }

  .orgao-card p {
      font-size: 0.9rem;
      margin: 0.4rem 0;
      color: var(--text-secondary);
      line-height: 1.5;
  }

  .orgao-card p strong {
      color: var(--text-primary);
  }
