/* ============================================================
   CidadaniaAtiva Theme v2.0
   Design: Civic Modern — Navy + Amber accent
   Fonts: Sora (headings) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  --navy:        #0B1F3A;
  --navy-mid:    #122848;
  --navy-light:  #1A3A5C;
  --amber:       #F59E0B;
  --amber-dark:  #D97706;
  --teal:        #0EA5E9;
  --green:       #10B981;
  --red:         #EF4444;
  --orange:      #F97316;

  --gray-50:     #F8FAFC;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-400:    #94A3B8;
  --gray-600:    #475569;
  --gray-800:    #1E293B;
  --white:       #FFFFFF;

  --font-head:   'Sora', sans-serif;
  --font-body:   'Inter', sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --shadow-card: 0 2px 20px rgba(11,31,58,.08);

  --transition:  0.22s cubic-bezier(.4,0,.2,1);
  --transition-slow: 0.4s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--gray-50);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 700;
}

/* ── LAYOUT UTILS ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--wide { max-width: 1440px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,.35);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* ────────────────────────────────────────────────────────────
   HEADER
──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.site-logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.site-logo span { color: var(--amber); }
.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--amber);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.site-nav a:hover, .site-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-report-btn {
  background: var(--amber);
  color: var(--navy);
  padding: .5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  transition: all var(--transition);
}
.header-report-btn:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
}

/* ────────────────────────────────────────────────────────────
   HERO — Full-viewport with mesh gradient
──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

/* Animated mesh background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(14,165,233,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(245,158,11,.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 80%, rgba(16,185,129,.08) 0%, transparent 50%);
  animation: meshMove 8s ease-in-out infinite alternate;
}

@keyframes meshMove {
  from { opacity: .8; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.04); }
}

/* City skyline silhouette */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 180px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180'%3E%3Cpath fill='%230B1F3A' fill-opacity='.4' d='M0,180L0,120L40,120L40,80L80,80L80,100L120,100L120,60L160,60L160,90L200,90L200,50L240,50L240,100L280,100L280,70L320,70L320,110L360,110L360,55L400,55L400,90L440,90L440,45L480,45L480,100L520,100L520,70L560,70L560,120L600,120L600,60L640,60L640,100L680,100L680,80L720,80L720,50L760,50L760,90L800,90L800,65L840,65L840,110L880,110L880,80L920,80L920,120L960,120L960,70L1000,70L1000,100L1040,100L1040,60L1080,60L1080,90L1120,90L1120,50L1160,50L1160,100L1200,100L1200,70L1240,70L1240,110L1280,110L1280,80L1320,80L1320,120L1360,120L1360,60L1400,60L1400,120L1440,120L1440,180Z'/%3E%3C/svg%3E") no-repeat bottom center / cover;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 1.5rem 8rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text { color: var(--white); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  color: var(--amber);
  padding: .35rem .9rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-badge::before { content: '⚡'; }

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--amber), #FCD34D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-item { text-align: center; }
.hero-stat-number {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amber);
  display: block;
}
.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Hero right: floating problem cards */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-phone-mockup {
  width: 280px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.mockup-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mockup-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.mockup-title { color: var(--white); font-size: .85rem; font-weight: 600; }
.mockup-sub { color: rgba(255,255,255,.5); font-size: .75rem; }

.mockup-img {
  width: 100%;
  height: 130px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(14,165,233,.3), rgba(16,185,129,.2));
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.mockup-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(0,0,0,.3));
}

.mockup-status-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.badge-aberto { background: rgba(239,68,68,.2); color: #FCA5A5; }
.badge-andamento { background: rgba(14,165,233,.2); color: #7DD3FC; }
.badge-resolvido { background: rgba(16,185,129,.2); color: #6EE7B7; }

.mockup-card-title {
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.mockup-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
}
.mockup-likes {
  display: flex;
  align-items: center;
  gap: .25rem;
  color: var(--amber);
}

/* Floating cards */
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  box-shadow: var(--shadow-lg);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: .5rem;
  animation: floatY 3s ease-in-out infinite;
}
.float-card:nth-child(2) { animation-delay: -1.5s; }
.float-card--top {
  top: -20px;
  right: -15px;
  animation: floatY 3s ease-in-out infinite;
}
.float-card--bottom {
  bottom: 10px;
  left: -20px;
  animation: floatY 3.5s ease-in-out infinite;
  animation-delay: -1.2s;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ────────────────────────────────────────────────────────────
   KPI BAR — Sticky numbers after hero
──────────────────────────────────────────────────────────── */
.kpi-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 10;
}
.kpi-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}
.kpi-item {
  padding: 1.5rem 1.75rem;
  border-right: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}
.kpi-item:last-child { border-right: none; }
.kpi-item:hover { background: var(--gray-50); }

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.kpi-icon--bairros { background: rgba(14,165,233,.1); }
.kpi-icon--buracos { background: rgba(239,68,68,.1); }
.kpi-icon--infra   { background: rgba(245,158,11,.1); }
.kpi-icon--seg     { background: rgba(139,92,246,.1); }
.kpi-icon--saude   { background: rgba(16,185,129,.1); }

.kpi-data {}
.kpi-number {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  display: block;
}
.kpi-label {
  font-size: .78rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  margin-top: .15rem;
  display: block;
}
.kpi-trend {
  font-size: .72rem;
  font-weight: 600;
  margin-top: .2rem;
  display: flex;
  align-items: center;
  gap: .15rem;
}
.kpi-trend--up { color: var(--green); }
.kpi-trend--down { color: var(--red); }

/* ────────────────────────────────────────────────────────────
   SECTION HEADERS
──────────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--amber);
  margin-bottom: .5rem;
}
.section-tag::before { content: ''; display: block; width: 20px; height: 2px; background: var(--amber); border-radius: 1px; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
}
.section-desc {
  color: var(--gray-600);
  font-size: 1rem;
  margin-top: .4rem;
}
.section-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  transition: gap var(--transition);
}
.section-link:hover { gap: .6rem; color: var(--amber-dark); }
.section-link::after { content: '→'; }

/* ────────────────────────────────────────────────────────────
   CATEGORIES GRID SECTION
──────────────────────────────────────────────────────────── */
.categories-section {
  padding: 5rem 0;
  background: var(--white);
}

.categories-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.cat-tab {
  padding: .55rem 1.1rem;
  border-radius: 99px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  background: var(--white);
  transition: all var(--transition);
}
.cat-tab:hover, .cat-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.category-block {
  margin-bottom: 4rem;
}
.category-block:last-child { margin-bottom: 0; }

.category-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.cat-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.cat-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}
.cat-count {
  font-size: .82rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-left: .25rem;
}

/* ────────────────────────────────────────────────────────────
   PROBLEM CARDS — 4-column grid
──────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card-problema {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.card-problema:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(11,31,58,.14);
  border-color: rgba(245,158,11,.2);
}

.card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--gray-100);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.card-problema:hover .card-image img {
  transform: scale(1.06);
}
.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.card-status-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .22rem .65rem;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  backdrop-filter: blur(8px);
}
.card-status-badge.aberto        { background: rgba(239,68,68,.85); color: #fff; }
.card-status-badge.em_analise    { background: rgba(245,158,11,.85); color: #fff; }
.card-status-badge.em_andamento  { background: rgba(14,165,233,.85); color: #fff; }
.card-status-badge.resolvido     { background: rgba(16,185,129,.85); color: #fff; }

.card-body {
  padding: 1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-category {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--amber-dark);
  margin-bottom: .45rem;
}
.card-title {
  font-family: var(--font-head);
  font-size: .98rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: .6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  margin-top: .5rem;
  border-top: 1px solid var(--gray-100);
}
.card-user {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  color: var(--gray-600);
  font-weight: 500;
}
.card-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}
.card-likes {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: color var(--transition);
}
.card-likes:hover { color: var(--red); }
.card-likes .heart-icon { font-size: .9rem; }

/* Category "Ver Todos" link row */
.cat-footer {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ────────────────────────────────────────────────────────────
   MAP SECTION
──────────────────────────────────────────────────────────── */
.map-section {
  padding: 5rem 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.map-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(14,165,233,.08) 0%, transparent 60%);
  pointer-events: none;
}

.map-header { margin-bottom: 2rem; }
.map-header .section-tag { color: var(--amber); }
.map-header .section-title { color: var(--white); }
.map-header .section-desc { color: rgba(255,255,255,.6); }

.map-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Map sidebar */
.map-sidebar {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}
.map-filter-title {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.map-filter-group { margin-bottom: 1.25rem; }
.map-filter-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.45);
  margin-bottom: .6rem;
  display: block;
}
.map-filter-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  margin-bottom: .25rem;
}
.map-filter-btn:hover, .map-filter-btn.active {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: var(--white);
}
.map-filter-btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-aberto       { background: var(--red); }
.dot-analise      { background: var(--amber); }
.dot-andamento    { background: var(--teal); }
.dot-resolvido    { background: var(--green); }

.map-legend { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
.legend-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .4rem;
}

/* Map container */
.map-container-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
#mapa-geral-home {
  height: 520px;
  width: 100%;
  background: #1a2f4a;
}

.map-report-btn {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 500;
  background: var(--amber);
  color: var(--navy);
  padding: .7rem 1.3rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 4px 16px rgba(245,158,11,.4);
  transition: all var(--transition);
}
.map-report-btn:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,.5);
}

/* ────────────────────────────────────────────────────────────
   HOW-TO STEPS SECTION
──────────────────────────────────────────────────────────── */
.howto-section {
  padding: 5rem 0;
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}
.howto-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.06) 0%, transparent 70%);
  pointer-events: none;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 3rem;
}

/* Connecting line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--teal), var(--green), var(--navy));
  opacity: .25;
  z-index: 0;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245,158,11,.25);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
  transition: transform var(--transition);
}
.step-card:hover .step-icon { transform: scale(1.1) rotate(-5deg); }
.step-icon--1 { background: rgba(245,158,11,.12); }
.step-icon--2 { background: rgba(14,165,233,.12); }
.step-icon--3 { background: rgba(16,185,129,.12); }
.step-icon--4 { background: rgba(139,92,246,.12); }

.step-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .65rem;
}
.step-desc {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ────────────────────────────────────────────────────────────
   RECENT / FEATURED PROBLEMS (carousel-like)
──────────────────────────────────────────────────────────── */
.featured-section {
  padding: 5rem 0;
  background: var(--white);
}

/* ────────────────────────────────────────────────────────────
   CTA BANNER
──────────────────────────────────────────────────────────── */
.cta-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--navy) 0%, #1A3A5C 50%, #0B2A50 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 30% 50%, rgba(245,158,11,.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 70% 40%, rgba(14,165,233,.06) 0%, transparent 50%);
}
.cta-content { position: relative; z-index: 1; }
.cta-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-title span { color: var(--amber); }
.cta-desc {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ────────────────────────────────────────────────────────────
   STATUS BADGES (inline)
──────────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .8rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
}
.status-badge.aberto        { background: #FEE2E2; color: #B91C1C; }
.status-badge.em_analise    { background: #FEF3C7; color: #92400E; }
.status-badge.em_andamento  { background: #DBEAFE; color: #1D4ED8; }
.status-badge.resolvido     { background: #D1FAE5; color: #065F46; }

/* ────────────────────────────────────────────────────────────
   SINGLE PROBLEM PAGE
──────────────────────────────────────────────────────────── */
.single-problema {
  max-width: 860px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.single-problema .problema-header { margin-bottom: 2rem; }
.single-problema .problema-meta-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.single-problema h1 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: .75rem;
}
.single-problema .problema-meta-info {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  color: var(--gray-600);
  font-size: .88rem;
}
.problema-galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 1.5rem 0;
}
.problema-galeria a { border-radius: var(--radius-md); overflow: hidden; display: block; }
.problema-galeria img { width: 100%; height: 200px; object-fit: cover; }
.problema-descricao {
  line-height: 1.75;
  color: var(--gray-800);
  margin: 2rem 0;
}
.problema-mapa-single {
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.5rem 0;
}
.problema-apoio {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
  border: 1px solid var(--gray-200);
}

/* ────────────────────────────────────────────────────────────
   ARCHIVE PAGE
──────────────────────────────────────────────────────────── */
.archive-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 3rem 0;
}
.archive-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  height: fit-content;
  position: sticky;
  top: 80px;
}
.filter-group { margin-bottom: 1.5rem; }
.filter-group-title {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-400);
  margin-bottom: .75rem;
}
.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem .5rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  cursor: pointer;
  color: var(--gray-800);
  transition: background var(--transition);
}
.filter-option:hover, .filter-option.active { background: var(--gray-100); color: var(--navy); }
.filter-count {
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 99px;
  padding: .1rem .5rem;
  font-size: .72rem;
  font-weight: 600;
}

/* ────────────────────────────────────────────────────────────
   FOOTER
──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand .site-logo { font-size: 1.1rem; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.55); }
.footer-col-title {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

/* ────────────────────────────────────────────────────────────
   ALERT MESSAGES
──────────────────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }

/* ────────────────────────────────────────────────────────────
   SUBMIT FORM
──────────────────────────────────────────────────────────── */
.submit-wrapper {
  max-width: 760px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.submit-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.submit-header h1 { font-size: 2rem; color: var(--navy); margin-bottom: .5rem; }
.submit-header p { color: var(--gray-600); }

.form-section-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ACF overrides for frontend form */
.acf-form .acf-label label {
  font-weight: 600;
  color: var(--gray-800);
  font-size: .9rem;
}
.acf-form input[type=text],
.acf-form input[type=url],
.acf-form textarea,
.acf-form select {
  border: 1.5px solid var(--gray-200) !important;
  border-radius: var(--radius-md) !important;
  padding: .65rem .9rem !important;
  font-size: .95rem !important;
  transition: border-color var(--transition) !important;
  background: var(--white) !important;
}
.acf-form input:focus, .acf-form textarea:focus, .acf-form select:focus {
  border-color: var(--amber) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(245,158,11,.12) !important;
}
.acf-form .acf-submit button[type=submit] {
  background: var(--navy) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  padding: .85rem 2.5rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all var(--transition) !important;
}
.acf-form .acf-submit button[type=submit]:hover {
  background: var(--amber) !important;
  color: var(--navy) !important;
  transform: translateY(-2px) !important;
}

/* ────────────────────────────────────────────────────────────
   LOADER / SKELETON
──────────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-inner { grid-template-columns: repeat(3, 1fr); }
  .kpi-item:nth-child(3) { border-right: none; }
  .map-layout { grid-template-columns: 1fr; }
  .map-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .kpi-inner { grid-template-columns: repeat(2, 1fr); }
  .kpi-item:nth-child(2) { border-right: none; }
  .site-nav { display: none; }
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .kpi-inner { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────────────────
   LEAFLET MAP OVERRIDES
──────────────────────────────────────────────────────────── */
.leaflet-container { font-family: var(--font-body) !important; }
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
}
.leaflet-popup-content { padding: .75rem 1rem !important; }
.map-popup-title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: .9rem;
  margin-bottom: .3rem;
}
.map-popup-meta { font-size: .78rem; color: var(--gray-600); }
.map-popup-status {
  display: inline-block;
  margin-top: .35rem;
  padding: .15rem .55rem;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 700;
}

/* ────────────────────────────────────────────────────────────
   ANIMATIONS
──────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  opacity: 0;
  animation: fadeInUp .6s forwards;
}
.animate-fade-up:nth-child(1) { animation-delay: .05s; }
.animate-fade-up:nth-child(2) { animation-delay: .12s; }
.animate-fade-up:nth-child(3) { animation-delay: .19s; }
.animate-fade-up:nth-child(4) { animation-delay: .26s; }

/* Counter animation */
.counter-number { transition: none; }

/* ────────────────────────────────────────────────────────────
   PRINT
──────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .map-section, .cta-banner { display: none; }
}
