:root {
    --primary: #58A6FF;
    --primary-text: #095db8; 
    --primary-dark: #074a8a;
    --secondary: #2ECC71;
    --orange-official: #FF7A3D;
    --bg-light: #F8F9FA;
    --dark: #1A1A1A;
    --white: #ffffff;
    --shadow: 0 15px 35px rgba(9, 93, 184, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--dark);
    line-height: 1.6;
    padding-bottom: 75px;
}

@media (min-width: 769px) {
    body { padding-bottom: 0; }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
}

h2, h3 {
    color: var(--primary-text) !important;
}

h2 { font-size: 2.5rem; margin-bottom: 15px; }
h3 { font-size: 1.5rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Desktop */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 55px; }

nav ul { display: flex; list-style: none; gap: 30px; }

/* Navbar Desktop - Efeitos de Hover Modernos */
nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

/* Linha animada no hover */
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-text);
    transition: var(--transition);
    transform: translateX(-50%);
}

nav a:hover {
    color: var(--primary-text);
    transform: translateY(-1px);
}

nav a:hover::after {
    width: 100%;
}

/* Barra Inferior Mobile */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    height: 62px;
    z-index: 2000;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #888;
    font-size: 0.6rem;
    font-weight: 700;
    transition: 0.3s;
    flex: 1;
    text-align: center;
}

.nav-item i { margin-bottom: 3px; width: 20px; height: 20px; }

.nav-item.active { color: var(--primary-text); }

/* Especial Secretaria: Laranja */
.nav-orange {
    color: var(--orange-official) !important;
}

/* Botão Secretaria Estilizado (Premium) */
.btn-secretaria {
    background: linear-gradient(135deg, var(--orange-official) 0%, #FF9A5C 100%) !important;
    color: white !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none !important;
    box-shadow: 0 6px 15px rgba(255, 122, 61, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none;
}

.btn-secretaria:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(255, 122, 61, 0.4) !important;
    filter: brightness(1.1);
}

.logo-nav-item {
    position: relative;
    top: -10px;
    background: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 0 15px rgba(0, 86, 179, 0.1);
    border: 3px solid #fff;
    z-index: 2100;
}

.logo-nav-item img { width: 45px; }

/* Hero Tech Institucional - Adaptável */
.hero {
    background: radial-gradient(circle at top right, #79B7FF, var(--primary));
    padding: 80px 0;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    header { display: none !important; }
    footer { display: none !important; } 
    .mobile-bottom-nav { display: flex; }
    .hero { 
        min-height: 100dvh; 
        padding: 40px 20px 100px 20px; 
    }
    .hero-logo { max-width: 140px; }
    .hero h1 { font-size: 0.95rem; padding: 0 10px; }
    .hero h2 { font-size: 1.5rem !important; }
}

.scroll-hint {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.6;
    animation: bounce 2s infinite;
    display: none;
}

@media (max-width: 768px) {
    .scroll-hint { display: block; }
}

/* Grid e Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}
