/* ============================================================
   CÂMARA MUNICIPAL DE NATIVIDADE — RJ
   Design: Minimalista Institucional Premium
   Fonte: Nunito (redonda, legível, profissional)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Nunito+Sans:wght@300;400;500;600;700&display=swap');

/* ── VARIÁVEIS ── */
:root {
  --navy:         #1b2c4e;
  --navy-dark:    #111e36;
  --navy-mid:     #213358;
  --navy-light:   #eef1f8;
  --navy-xlight:  #f5f7fc;
  --gold:         #c8952a;
  --gold-light:   #e8aa30;
  --gold-pale:    #fdf6e3;
  --gold-border:  rgba(200,149,42,.3);
  --white:        #ffffff;
  --gray-100:     #f4f5f8;
  --gray-200:     #e8eaf2;
  --gray-300:     #d0d4e0;
  --gray-500:     #8892a4;
  --text:         #1a2035;
  --text-soft:    #4a5568;
  --radius-xs:    6px;
  --radius-sm:    10px;
  --radius:       14px;
  --radius-lg:    20px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
  --shadow:       0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.14);
  --topbar-h:     38px;
  --header-h:     74px;
  --total-h:      calc(var(--topbar-h) + var(--header-h));
  --transition:   .2s cubic-bezier(.4,0,.2,1);
}

/* ── BASE ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--total-h);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ============================================================
   TOPBAR + HEADER — FIXO NO TOPO
   ============================================================ */

#header-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
}

/* Topbar */
.topbar {
  height: var(--topbar-h);
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.topbar .inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.topbar-left, .topbar-right {
  display: flex; align-items: center; gap: 18px;
}
.topbar a, .topbar span {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color var(--transition);
  font-family: 'Nunito', sans-serif;
}
.topbar a:hover { color: var(--gold-light); }
.topbar-sep { opacity: .18; font-size: .8rem; }

/* Header */
.site-header {
  height: var(--header-h);
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--gray-200), var(--shadow-sm);
  display: flex;
  align-items: center;
}
.header-inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(27,44,78,.3);
}
.brand-info { line-height: 1.2; }
.brand-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  display: block;
}
.brand-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gray-500);
  display: block;
}

/* ============================================================
   NAVEGAÇÃO — DROPDOWN VIA JAVASCRIPT (click/hover com delay)
   ============================================================ */

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}

/* Links e botões do menu */
.nav-link,
.nav-trigger {
  font-family: 'Nunito', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  background: none;
  border: none;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  line-height: 1;
}
.nav-link:hover,
.nav-trigger:hover,
.nav-link.active,
.nav-trigger.open {
  background: var(--navy-light);
  color: var(--navy);
}
.nav-trigger svg {
  width: 12px; height: 12px;
  transition: transform var(--transition);
  opacity: .5;
}
.nav-trigger.open svg { transform: rotate(180deg); opacity: .8; }

/* Dropdown wrapper */
.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Dropdown panel */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 228px;
  z-index: 9999;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility .18s;
  pointer-events: none;
}
.dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.dropdown a:hover {
  background: var(--navy-light);
  color: var(--navy);
  font-weight: 600;
}
.dropdown a .ico { font-size: 1rem; width: 20px; text-align: center; opacity: .7; }
.dropdown-sep {
  height: 1px;
  background: var(--gray-200);
  margin: 5px 6px;
}

/* Botão eSIC */
.nav-esic {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(200,149,42,.3);
  margin-left: 4px;
  height: 38px;
  line-height: 1;
}
.nav-esic:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(200,149,42,.4);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
  display: block;
}

/* ============================================================
   HERO DA HOME — Imagem de fundo
   ============================================================ */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../img/fundo.png') center/cover no-repeat;
  transform: scale(1.04);
  transition: transform 12s ease;
}
.hero:hover .hero-bg { transform: scale(1.06); }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(108deg,
      rgba(13,22,44,.94) 0%,
      rgba(17,30,54,.82) 42%,
      rgba(20,38,65,.52) 68%,
      rgba(20,40,70,.18) 100%
    );
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .5;
  pointer-events: none;
}
.hero-gold-line {
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 3px;
  background: linear-gradient(180deg, transparent 0%, var(--gold) 30%, var(--gold-light) 70%, transparent 100%);
  border-radius: 2px;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 80px 0;
  max-width: 640px;
  margin-left: 0;        /* ← ALINHAMENTO À ESQUERDA */
  margin-right: auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,149,42,.15);
  border: 1px solid rgba(200,149,42,.35);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  font-family: 'Nunito', sans-serif;
}
.hero-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}
.hero-title em {
  font-style: normal;
  color: var(--gold-light);
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
  border-radius: 1px;
}
.hero-desc {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255,255,255,.62);
  line-height: 1.78;
  max-width: 480px;
  margin-bottom: 38px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  align-items: center;
}
.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,.42);
}
.hero-trust-item .dot {
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200,149,42,.35);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,149,42,.45);
}
.btn-glass {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
}
.btn-glass:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-1px);
}
.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--navy); background: var(--navy-light); }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1280px;
  margin: auto;
}
.stat-block {
  padding: 26px 32px;
  border-right: 1px solid var(--gray-200);
  position: relative;
  transition: background var(--transition);
  overflow: hidden;
}
.stat-block:last-child { border-right: none; }
.stat-block:hover { background: var(--navy-xlight); }
.stat-block::after {
  content: '';
  position: absolute;
  bottom: 0; left: 32px; right: 32px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform .35s ease;
  transform-origin: left;
}
.stat-block:hover::after { transform: scaleX(1); }
.stat-num {
  font-family: 'Nunito', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  display: block;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 5px;
  display: block;
}

/* ============================================================
   QUICK ACCESS BAR
   ============================================================ */
.quick-bar { background: var(--navy); }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  max-width: 1280px;
  margin: auto;
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 22px 16px;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}
.quick-item:last-child { border-right: none; }
.quick-item:hover { background: rgba(200,149,42,.1); }
.quick-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.quick-item:hover::after { transform: scaleX(1); }
.quick-ico { font-size: 1.4rem; display: block; }
.quick-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  transition: color var(--transition);
  text-align: center;
}
.quick-item:hover .quick-lbl { color: var(--gold-light); }

/* ============================================================
   PAGE HERO (páginas internas)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 56px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 50%, rgba(200,149,42,.13) 0%, transparent 55%);
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 50%;
}
.page-hero .wrap { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,.38);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: rgba(255,255,255,.38);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { opacity: .3; }
.page-hero h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.page-hero p {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,.56);
  max-width: 580px;
  line-height: 1.75;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.wrap { max-width: 1280px; margin: auto; padding: 0 32px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

.sec-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.sec-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.sec-sub {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 540px;
  margin-top: 8px;
}
.gold-bar {
  width: 36px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 14px 0 36px;
}
.sec-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
}
.badge-green  { background: #e8f5e9; color: #2e7d32; }
.badge-orange { background: #fff3e0; color: #c84e00; }
.badge-red    { background: #fce4ec; color: #b71c1c; }
.badge-blue   { background: var(--navy-light); color: var(--navy); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0b1525;
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 52px;
  max-width: 1280px;
  margin: auto;
  padding: 0 32px;
}
.footer-logo-name {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: rgba(255,255,255,.78);
  display: block;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.footer-logo-name em { color: var(--gold-light); font-style: normal; }
.footer-brand p {
  font-size: 0.84rem;
  color: rgba(255,255,255,.32);
  line-height: 1.72;
}
.footer-col h5 {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-bottom: 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255,255,255,.30);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: 1280px;
  margin: 52px auto 0;
  padding: 18px 32px;
  border-top: 1px solid rgba(255,255,255,.055);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.73rem;
  font-weight: 500;
  color: rgba(255,255,255,.2);
}
.footer-bottom a { color: var(--gold-light); text-decoration: none; }

/* ============================================================
   SCROLL MARGIN — ancora não some atrás do header fixo
   ============================================================ */
[id] { scroll-margin-top: calc(var(--total-h) + 20px); }

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
.fade-up { animation: fadeUp .55s cubic-bezier(.4,0,.2,1) both; }
.d1 { animation-delay: .12s; }
.d2 { animation-delay: .24s; }
.d3 { animation-delay: .36s; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1100px) {
  .nav-link, .nav-trigger { font-size: 0.8rem; padding: 8px 9px; }
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .quick-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-right { display: none; }
  body { padding-top: calc(var(--header-h)); }
  .topbar { display: none; }
}