/* ============================================================
   SECRETARIA MUNICIPAL DE ADMINISTRAÇÃO — NITERÓI
   Design System v2 — Redesign 2026
   ============================================================ */

:root {
    /* Identidade Niterói */
    --primary: #F3730A;
    --primary-hover: #D85F00;
    --primary-soft: rgba(243, 115, 10, 0.1);
    --secondary: #1F78B4;
    --secondary-hover: #155f91;
    --secondary-soft: rgba(31, 120, 180, 0.1);
    --accent: #0E8A43;

    /* Navy institucional */
    --navy: #0D2C4B;
    --navy-2: #123A63;

    /* Neutros */
    --text-main: #1A2530;
    --text-light: #5A6673;
    --bg-main: #F6F8FB;
    --bg-white: #FFFFFF;
    --border: #E3E8EF;

    /* Tipografia */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Gradientes */
    --grad-brand: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    --grad-navy: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #17497c 100%);
    --grad-orange: linear-gradient(135deg, #F3730A 0%, #FF9A44 100%);
    --grad-blue: linear-gradient(135deg, #1F78B4 0%, #4FACFE 100%);

    /* Efeitos */
    --shadow-sm: 0 2px 6px rgba(13, 44, 75, 0.06);
    --shadow-md: 0 6px 18px rgba(13, 44, 75, 0.08);
    --shadow-lg: 0 14px 34px rgba(13, 44, 75, 0.12);
    --shadow-hover: 0 18px 40px rgba(31, 120, 180, 0.18);

    --radius: 16px;
    --radius-sm: 10px;

    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    /* Layout */
    --container: 1280px;
    --section-pad: 6rem 0;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-pad);
}

.bg-light {
    background-color: var(--bg-white);
}

.w-100 {
    width: 100%;
}

/* Acessibilidade: reduz animações quando solicitado pelo sistema */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- BARRA DE PROGRESSO DE SCROLL --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: var(--grad-brand);
    z-index: 3000;
    border-radius: 0 4px 4px 0;
}

/* --- TIPOGRAFIA --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-weight: 700;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.section-header h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Sublinhado que se "desenha" quando a seção entra na tela */
.section-header h3::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 90px;
    height: 5px;
    background: var(--grad-brand);
    border-radius: 5px;
    transition: transform 0.8s var(--ease-out) 0.3s;
}

.is-visible .section-header h3::after {
    transform: translateX(-50%) scaleX(1);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-top: 1.75rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* --- BOTÕES --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--grad-orange);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(243, 115, 10, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease-out);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(243, 115, 10, 0.45);
    color: white;
}

.btn-primary:hover::after {
    left: 130%;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(31, 120, 180, 0.3);
}

/* --- HEADER --- */
.header {
    width: 100%;
    z-index: 1000;
    position: relative;
}

/* Filete de gradiente no topo da página */
.header-accent {
    height: 5px;
    background: var(--grad-brand);
}

/* Linha 1: Topo branco com logo */
.header-top {
    background-color: #ffffff;
    padding: 1.25rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 200px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transition: transform 0.4s var(--ease-out);
}

.logo a:hover .logo-image {
    transform: scale(1.03);
}

.header-title {
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex: 1;
    margin: 0 20px;
    line-height: 1.25;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
}

.header-social-icons {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-social-icons a {
    color: var(--primary);
    font-size: 3.5rem;
    display: flex;
    transition: transform 0.3s var(--ease-out), color 0.3s ease;
}

.header-social-icons a:hover {
    color: var(--secondary);
    transform: translateY(-4px) scale(1.08);
}

/* Linha 2: Navegação sticky */
.header-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1001;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.header-nav.scrolled {
    box-shadow: 0 8px 24px rgba(13, 44, 75, 0.1);
}

.nav-container {
    display: flex;
    justify-content: center;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav li {
    margin: 0;
}

.nav-link {
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1.1rem 1.15rem;
    display: block;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Sublinhado animado nos links do menu */
.nav-link::after {
    content: '';
    position: absolute;
    left: 1.15rem;
    right: 1.15rem;
    bottom: 0.65rem;
    height: 3px;
    border-radius: 3px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* --- MENU MOBILE --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 44, 75, 0.55);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-container {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 88vw;
    height: 100vh;
    background: white;
    z-index: 2001;
    padding: 2rem;
    box-shadow: -10px 0 35px rgba(13, 44, 75, 0.2);
    transition: right 0.45s var(--ease-out);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-overlay.active .mobile-nav-container {
    right: 0;
}

.mobile-close-btn {
    align-self: flex-end;
    background: var(--bg-main);
    border: none;
    font-size: 1.6rem;
    color: var(--text-main);
    cursor: pointer;
    margin-bottom: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-close-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    font-family: var(--font-heading);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    /* Entrada escalonada dos itens */
    opacity: 0;
    transform: translateX(30px);
}

.mobile-nav-overlay.active .mobile-nav a {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), background 0.3s, color 0.3s;
}

.mobile-nav-overlay.active .mobile-nav li:nth-child(1) a { transition-delay: 0.08s; }
.mobile-nav-overlay.active .mobile-nav li:nth-child(2) a { transition-delay: 0.14s; }
.mobile-nav-overlay.active .mobile-nav li:nth-child(3) a { transition-delay: 0.20s; }
.mobile-nav-overlay.active .mobile-nav li:nth-child(4) a { transition-delay: 0.26s; }
.mobile-nav-overlay.active .mobile-nav li:nth-child(5) a { transition-delay: 0.32s; }
.mobile-nav-overlay.active .mobile-nav li:nth-child(6) a { transition-delay: 0.38s; }
.mobile-nav-overlay.active .mobile-nav li:nth-child(7) a { transition-delay: 0.44s; }
.mobile-nav-overlay.active .mobile-nav li:nth-child(8) a { transition-delay: 0.50s; }

.mobile-nav a:hover,
.mobile-nav a.active {
    background: var(--primary-soft);
    color: var(--primary);
}

/* --- HERO / CARROSSEL --- */
.carousel-hero {
    position: relative;
    padding: 2rem 0 1rem;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1280 / 540;
    max-height: 560px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Botões de navegação (setas) do carrossel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 12;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary, #333);
    font-size: 1.7rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.carousel-btn:hover {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn-prev {
    left: 18px;
}

.carousel-btn-next {
    right: 18px;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Indicadores do carrossel */
.carousel-indicators {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 26px;
    height: 6px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: var(--primary);
    width: 42px;
}

/* --- ACESSO RÁPIDO (chips abaixo do hero) --- */
.quick-access {
    padding: 1rem 0 2rem;
}

.quick-access-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.7rem 1.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.quick-chip i {
    color: var(--primary);
    font-size: 1.25rem;
    transition: transform 0.3s var(--ease-out);
}

.quick-chip:hover {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.quick-chip:hover i {
    transform: scale(1.2) rotate(-8deg);
    color: var(--primary);
}

/* --- A SECRETARIA (Institucional) --- */
.about {
    position: relative;
    overflow: hidden;
}

/* Formas decorativas flutuantes ao fundo */
.about::before,
.about::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.about::before {
    width: 420px;
    height: 420px;
    right: -160px;
    top: -120px;
    background: radial-gradient(circle, var(--secondary-soft), transparent 70%);
    animation: floatSlow 9s ease-in-out infinite;
}

.about::after {
    width: 320px;
    height: 320px;
    left: -140px;
    bottom: -100px;
    background: radial-gradient(circle, var(--primary-soft), transparent 70%);
    animation: floatSlow 11s ease-in-out infinite reverse;
}

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

.about-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content .section-tag {
    margin-bottom: 1rem;
}

.about-content h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.about-content h3 span {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.85;
}

.about-content .btn-primary {
    margin-top: 1rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.pillar-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-out);
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.pillar-card:hover::before {
    transform: scaleX(1);
}

.pillar-card i {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 0.9rem;
    display: inline-block;
    transition: transform 0.4s var(--ease-out), color 0.3s ease;
}

.pillar-card:hover i {
    color: var(--primary);
    transform: scale(1.15) rotate(-6deg);
}

.pillar-card h5 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.pillar-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- FAIXA DE ESTATÍSTICAS --- */
.stats {
    background: var(--grad-navy);
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0;
}

/* Padrão de pontos decorativo */
.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    pointer-events: none;
}

.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    transition: background 0.3s ease, transform 0.4s var(--ease-out);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2.6rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
}

.stat-item:nth-child(2) i { animation-delay: 0.5s; }
.stat-item:nth-child(3) i { animation-delay: 1s; }
.stat-item:nth-child(4) i { animation-delay: 1.5s; }

.stat-number {
    font-size: 3.25rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number small {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
}

.stat-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
}

/* --- SERVIÇOS DIGITAIS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out),
        box-shadow 0.35s ease, border-color 0.3s ease;
}

/* Barra superior que cresce no hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-out);
}

/* Brilho que varre o card no hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -85%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(31, 120, 180, 0.06), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s var(--ease-out);
    pointer-events: none;
}

.is-visible .service-card {
    opacity: 1;
    transform: translateY(0);
}

.is-visible .service-card:nth-child(1) { transition-delay: 0.05s; }
.is-visible .service-card:nth-child(2) { transition-delay: 0.12s; }
.is-visible .service-card:nth-child(3) { transition-delay: 0.19s; }
.is-visible .service-card:nth-child(4) { transition-delay: 0.26s; }
.is-visible .service-card:nth-child(5) { transition-delay: 0.33s; }
.is-visible .service-card:nth-child(6) { transition-delay: 0.40s; }
.is-visible .service-card:nth-child(7) { transition-delay: 0.47s; }
.is-visible .service-card:nth-child(8) { transition-delay: 0.54s; }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
    transition-delay: 0s !important;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    left: 130%;
}

/* Ícone em "tile" colorido */
.service-icon-tile {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background 0.35s ease, transform 0.45s var(--ease-out);
}

.service-icon-tile i {
    font-size: 2rem;
    color: var(--primary);
    transition: color 0.35s ease, transform 0.45s var(--ease-out);
}

.service-card:hover .service-icon-tile {
    background: var(--grad-orange);
    transform: scale(1.08) rotate(-5deg);
}

.service-card:hover .service-icon-tile i {
    color: white;
    transform: scale(1.05);
}

/* Compatibilidade com ícone antigo sem tile */
.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    transition: gap 0.3s var(--ease-out), color 0.3s ease;
}

.service-card:hover .card-action {
    color: var(--primary);
    gap: 0.85rem;
}

/* Card em destaque (SIRNIT) */
.service-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, #FFF7F0 0%, #FFFFFF 100%);
}

.service-card.featured .featured-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--grad-orange);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(243, 115, 10, 0.45); }
    50% { box-shadow: 0 0 0 9px rgba(243, 115, 10, 0); }
}

/* --- MÍDIAS SOCIAIS --- */
.instagram-feed-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    border: 1px solid var(--border);
}

/* --- NOTÍCIAS (Slider) --- */
.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1150px;
    margin: 0 auto;
    padding: 1rem 0;
    gap: 1rem;
}

.slider-wrapper {
    overflow: hidden;
    flex-grow: 1;
    max-width: 1000px;
    padding: 1.5rem 0.5rem;
    margin: -1.5rem -0.5rem;
}

.slider-track {
    display: flex;
    transition: transform 0.6s var(--ease-out);
    gap: 2rem;
}

.news-slide {
    min-width: calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.news-slide:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

@media(min-width: 768px) {
    .news-slide {
        min-width: calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

.news-img {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s var(--ease-out);
}

.news-slide:hover .news-img {
    transform: scale(1.06);
}

.bg-orange { background: var(--grad-orange); }
.bg-blue { background: var(--grad-blue); }
.bg-gray { background: linear-gradient(135deg, #8baaaa 0%, #ae8b9c 100%); }

.news-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    position: relative;
    z-index: 1;
}

.news-tag {
    background: var(--secondary-soft);
    color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.news-body h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.news-body p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-readmore {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-heading);
    transition: gap 0.3s var(--ease-out), color 0.3s ease;
}

.btn-readmore:hover {
    color: var(--primary-hover);
    gap: 0.85rem;
}

.slider-btn {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    font-size: 1.6rem;
    color: var(--secondary);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-btn:hover {
    background: var(--grad-blue);
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(31, 120, 180, 0.3);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.94);
}

/* --- ADMINISTRAÇÕES REGIONAIS --- */
.regionals-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.45rem 1.1rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.legend-chip .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(243, 115, 10, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(243, 115, 10, 0); }
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
}

/* Marcador do mapa com pulso */
.custom-marker > div {
    animation: markerPulse 2.4s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(243, 115, 10, 0.45); }
    50% { box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(243, 115, 10, 0); }
}

/* --- TRANSPARÊNCIA PÚBLICA --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.dash-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out),
        box-shadow 0.35s ease, border-color 0.3s ease;
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--grad-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-out);
}

.is-visible .dash-card {
    opacity: 1;
    transform: translateY(0);
}

.is-visible .dash-card:nth-child(1) { transition-delay: 0.1s; }
.is-visible .dash-card:nth-child(2) { transition-delay: 0.2s; }
.is-visible .dash-card:nth-child(3) { transition-delay: 0.3s; }

.dash-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
    transition-delay: 0s !important;
}

.dash-card:hover::before {
    transform: scaleX(1);
}

.dash-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--secondary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--secondary);
    transition: background 0.35s ease, color 0.35s ease, transform 0.45s var(--ease-out);
}

.dash-card:hover .dash-icon {
    background: var(--grad-blue);
    color: white;
    transform: scale(1.08) rotate(-5deg);
}

.dash-card h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.dash-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.dash-link {
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    background: var(--primary-soft);
    padding: 0.55rem 1.15rem;
    border-radius: 50px;
    transition: var(--transition);
}

.dash-link:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 16px rgba(243, 115, 10, 0.35);
}

/* Card de destaque (Prestação de Contas) */
.dash-featured {
    grid-column: span 3;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.25rem 3rem;
    background: var(--grad-navy);
    color: white;
    border-radius: var(--radius);
    border: none;
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s var(--ease-out) 0.4s, transform 0.7s var(--ease-out) 0.4s,
        box-shadow 0.35s ease;
}

.dash-featured::before {
    display: none;
}

.is-visible .dash-featured {
    opacity: 1;
    transform: translateY(0);
}

.dash-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(13, 44, 75, 0.35);
}

.dash-featured .featured-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dash-featured .featured-text h5 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.dash-featured .featured-text p {
    margin: 0;
    opacity: 0.85;
}

.dash-featured .dash-icon {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    margin-bottom: 0;
    flex-shrink: 0;
}

.dash-featured:hover .dash-icon {
    background: var(--grad-orange);
    transform: scale(1.08) rotate(-5deg);
}

.dash-featured h5,
.dash-featured p {
    color: white;
    text-align: left;
}

.dash-featured .featured-action {
    margin-left: auto;
}

.dash-featured .btn-primary {
    white-space: nowrap;
}

/* --- FALE CONOSCO --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-details {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    gap: 1.15rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    transition: background 0.3s ease, transform 0.35s var(--ease-out);
}

.detail-item:hover {
    background: var(--bg-main);
    transform: translateX(6px);
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: var(--grad-orange);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(243, 115, 10, 0.3);
    transition: transform 0.4s var(--ease-out);
}

.detail-item:hover .detail-icon {
    transform: scale(1.1) rotate(-6deg);
}

.detail-item h5 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.detail-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.map-container {
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

/* --- FOOTER --- */
.footer {
    background: var(--grad-navy);
    color: white;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

/* Filete de gradiente no topo do footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--grad-brand);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.footer-logo .logo-image {
    height: 80px;
    width: auto;
    max-width: 100%;
    background: white;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2rem;
    max-width: 400px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--grad-orange);
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(243, 115, 10, 0.4);
}

.footer-links h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--grad-brand);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease, padding-left 0.3s var(--ease-out);
}

.footer-links a::before {
    content: '›';
    color: var(--primary);
    font-weight: 700;
    transition: transform 0.3s var(--ease-out);
}

.footer-links a:hover {
    color: white;
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a:hover {
    color: white;
}

/* --- BOTÃO VOLTAR AO TOPO --- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--grad-orange);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(243, 115, 10, 0.4);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s var(--ease-out),
        box-shadow 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(243, 115, 10, 0.5);
}

/* --- ANIMAÇÕES DE SCROLL (Reveal) --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Reveal com variações via data-attribute */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    will-change: opacity, transform;
}

[data-reveal="up"] { transform: translateY(45px); }
[data-reveal="left"] { transform: translateX(-55px); }
[data-reveal="right"] { transform: translateX(55px); }
[data-reveal="zoom"] { transform: scale(0.88); }

[data-reveal].revealed {
    opacity: 1;
    transform: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* --- POPUP DO LEAFLET --- */
.animated-popup .leaflet-popup-content-wrapper,
.animated-popup .leaflet-popup-tip {
    animation: popupFadeInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-origin: bottom center;
}

.animated-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

@keyframes popupFadeInUp {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- RESPONSIVO --- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-featured {
        grid-column: span 2;
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1rem;
    }

    .dash-featured .featured-text {
        text-align: center;
        align-items: center;
    }

    .dash-featured h5,
    .dash-featured p {
        text-align: center;
    }

    .dash-featured .featured-action {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .dash-featured .dash-icon {
        margin: 0 auto 0.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 4rem 0;
    }

    .desktop-nav {
        display: none;
    }

    .header-nav {
        border-top: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header-title {
        display: block;
        flex: 100%;
        order: 3;
        margin: 15px 0 0 0;
        font-size: 1.05rem;
    }

    .logo-image {
        height: 100px;
    }

    .section-header h3 {
        font-size: 2rem;
    }

    .carousel-container {
        border-radius: var(--radius-sm);
    }

    .quick-access-track {
        gap: 0.6rem;
    }

    .quick-chip {
        padding: 0.6rem 1.1rem;
        font-size: 0.82rem;
    }

    .about-content h3 {
        font-size: 1.9rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dash-featured {
        grid-column: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .bottom-flex {
        flex-direction: column;
        text-align: center;
    }

    .slider-container {
        padding: 0;
        width: 100%;
        max-width: 100vw;
    }

    .slider-wrapper {
        overflow: hidden;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .slider-btn {
        display: none;
    }

    .slider-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        width: 100%;
    }

    .news-slide {
        scroll-snap-align: start;
        min-width: 85%;
    }

    .map-wrapper {
        margin: 0 -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    #map-regionais {
        height: 450px !important;
        width: 100vw !important;
        max-width: 100%;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
    }
}

/* --- ESPAÇO DO SERVIDOR (Endomarketing) --- */
.servidor-section {
    position: relative;
    overflow: hidden;
}

/* Letreiro animado (marquee) */
.endo-marquee {
    overflow: hidden;
    padding: 0 0 2.5rem;
    user-select: none;
    pointer-events: none;
}

.endo-marquee-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    white-space: nowrap;
    width: max-content;
    animation: marqueeScroll 32s linear infinite;
}

@keyframes marqueeScroll {
    to { transform: translateX(-50%); }
}

.endo-marquee-track span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--navy);
    opacity: 0.18;
}

.endo-marquee-track span.dot-sep {
    color: var(--primary);
    opacity: 0.45;
}

/* Grade principal: CTA + cards */
.servidor-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

/* Card CTA em navy */
.servidor-cta-card {
    background: var(--grad-navy);
    border-radius: var(--radius);
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.servidor-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    pointer-events: none;
}

.servidor-cta-card::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    right: -120px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(243, 115, 10, 0.25), transparent 70%);
    animation: floatSlow 8s ease-in-out infinite;
    pointer-events: none;
}

.servidor-cta-card > * {
    position: relative;
    z-index: 1;
}

.servidor-cta-card .cta-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFB877;
    margin-bottom: 1rem;
}

.servidor-cta-card h3 {
    color: white;
    font-size: 2.1rem;
    margin-bottom: 1.25rem;
}

.servidor-cta-card h3 span {
    background: var(--grad-orange);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.servidor-cta-card > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.75rem;
    line-height: 1.8;
}

.cta-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2.25rem;
}

.cta-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-list li i {
    color: var(--primary);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.servidor-cta-card .btn-primary {
    align-self: flex-start;
}

/* Cards de endomarketing */
.endo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.endo-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.9rem 1.6rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.3s ease;
}

.endo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-out);
}

.endo-card:nth-child(even)::before {
    background: var(--grad-blue);
}

.endo-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.endo-card:hover::before {
    transform: scaleX(1);
}

.endo-icon-tile {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    font-size: 1.7rem;
    color: var(--primary);
    transition: background 0.35s ease, color 0.35s ease, transform 0.45s var(--ease-out);
}

.endo-card:nth-child(even) .endo-icon-tile {
    background: var(--secondary-soft);
    color: var(--secondary);
}

.endo-card:hover .endo-icon-tile {
    background: var(--grad-orange);
    color: white;
    transform: scale(1.1) rotate(-6deg);
}

.endo-card:nth-child(even):hover .endo-icon-tile {
    background: var(--grad-blue);
}

.endo-card h5 {
    font-size: 1.02rem;
    margin-bottom: 0.5rem;
}

.endo-card p {
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.65;
}

/* Chips de serviços do servidor */
.servidor-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

/* Responsivo do Espaço do Servidor */
@media (max-width: 1024px) {
    .servidor-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .servidor-cta-card {
        padding: 2rem;
    }

    .servidor-cta-card h3 {
        font-size: 1.7rem;
    }

    .endo-grid {
        grid-template-columns: 1fr;
    }

    .endo-marquee-track span {
        font-size: 0.95rem;
    }
}

/* --- SLIDE PLACEHOLDER DO CARROSSEL (identidade Niterói) --- */
/* Exibido enquanto nenhum banner é cadastrado no painel */
.carousel-slide.carousel-placeholder {
    background: var(--grad-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.carousel-slide.carousel-placeholder.active {
    animation: none; /* mantém o texto nítido (sem Ken Burns) */
}

.carousel-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    pointer-events: none;
}

.carousel-placeholder::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    right: -120px;
    bottom: -140px;
    background: radial-gradient(circle, rgba(243, 115, 10, 0.25), transparent 70%);
    animation: floatSlow 9s ease-in-out infinite;
    pointer-events: none;
}

.carousel-placeholder-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 660px;
}

.carousel-placeholder-content .cp-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFB877;
    margin-bottom: 1rem;
}

.carousel-placeholder-content h2 {
    color: white;
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.carousel-placeholder-content h2 span {
    background: var(--grad-orange);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-placeholder-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
}

@media (max-width: 768px) {
    .carousel-placeholder-content h2 { font-size: 1.5rem; }
    .carousel-placeholder-content p { font-size: 0.95rem; }
    .carousel-placeholder-content .cp-tag { font-size: 0.7rem; letter-spacing: 1.5px; }
}
