/* ═══════════════════════════════════════════════════════════════
   ROTIER CITIES — Landing Page
   Usa os tokens do design system (design.css).
   ═══════════════════════════════════════════════════════════════ */

/* ── Seções base ─────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section.light-background { background: var(--surface); }

/* ── Título de seção ─────────────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  letter-spacing: -0.025em;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 3px;
  background: var(--brand-500);
  border-radius: var(--r-full);
}
.section-title p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}

/* Títulos de detalhe com acento de cor */
.section-title-detail { color: var(--brand-700) !important; }

/* ── Hero (#inicio) ──────────────────────────────────────────── */
#inicio {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: var(--header-h, 64px) 0 0;
}

/* Grade de fundo sutil */
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--brand-500) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand-500) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .04;
  pointer-events: none;
}

/* Brilho radial verde — deslocado para a esquerda no split */
.hero-bg-glow {
  position: absolute;
  top: -20%; left: 25%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(47, 138, 95, .22) 0%,
    rgba(47, 138, 95, .06) 45%,
    transparent 70%
  );
  pointer-events: none;
}

/* ── Layout split ──────────────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 64px;
}

.hero-left {
  text-align: left;
}

/* Badge município */
.welcome-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--app-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-full);
  padding: 5px 14px;
  margin-bottom: 24px;
}
.welcome-text::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.75); }
}

/* Título */
.main-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 16px;
}

/* Subtítulo */
.hero-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 36px;
}

/* ── Bloco de busca imobiliária ────────────────────────────── */
.hero-search-block {
  margin-bottom: 28px;
}
.hero-search-label {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--app-font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.hero-search-form { width: 100%; max-width: 480px; }
.hero-search-inner {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
  height: 52px;
  box-shadow: var(--sh-md);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.hero-search-inner:focus-within {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(47,138,95,.12), var(--sh-md);
}
.hero-search-icon {
  padding: 0 14px;
  color: var(--muted);
  font-size: 15px;
  flex-shrink: 0;
}
.hero-search-input {
  flex: 1;
  border: none; outline: none;
  background: transparent;
  font-family: var(--app-font);
  font-size: 14px;
  color: var(--fg);
  padding: 0;
  min-width: 0;
}
.hero-search-input::placeholder { color: var(--muted-2); }
.hero-search-btn {
  flex-shrink: 0;
  height: 100%;
  padding: 0 20px;
  background: var(--brand-500);
  border: none;
  color: #fff;
  font-family: var(--app-font);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center;
  transition: background var(--dur-fast);
  white-space: nowrap;
}
.hero-search-btn:hover { background: var(--brand-600); }
.hero-search-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 0;
}
.hero-search-hint a {
  color: var(--brand-600);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--dur-fast);
}
.hero-search-hint a:hover { color: var(--brand-500); }

/* ── CTAs ─────────────────────────────────────────────────── */
.hero-actions {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 12px; flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: var(--brand-500); color: #fff;
  font-family: var(--app-font); font-size: 14px; font-weight: 600;
  border-radius: var(--r-full);
  text-decoration: none; letter-spacing: .01em;
  box-shadow: 0 4px 16px rgba(47,138,95,.35);
  transition: all var(--dur-base) var(--ease-out);
}
.btn-hero:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47,138,95,.4);
  color: #fff;
}

.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--fg-2);
  font-family: var(--app-font); font-size: 14px; font-weight: 500;
  border-radius: var(--r-full);
  text-decoration: none; letter-spacing: .01em;
  transition: all var(--dur-base) var(--ease-out);
}
.btn-hero-ghost:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
  background: var(--brand-50);
}

/* ── Visual GIS animado (coluna direita) ─────────────────── */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-map-preview {
  position: relative;
  width: 100%;
  max-width: 520px;
}

/* Card principal */
.hv-card {
  border-radius: 16px;
  overflow: hidden;
  background: #0d1520;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 32px 72px rgba(0,0,0,.6),
    0 8px 24px rgba(0,0,0,.4);
  animation: hv-float 6s ease-in-out infinite;
}
@keyframes hv-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) { .hv-card { animation: none; } }

/* Topbar */
.hv-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hv-dots { display: flex; gap: 5px; flex-shrink: 0; }
.hv-dot  { width: 9px; height: 9px; border-radius: 50%; }
.hv-dot--red    { background: #ef4444; }
.hv-dot--yellow { background: #f59e0b; }
.hv-dot--green  { background: #22c55e; }

.hv-url {
  flex: 1;
  font-size: 10px;
  font-family: var(--app-font-mono);
  color: rgba(255,255,255,.38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hv-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #22c55e;
  flex-shrink: 0;
}
.hv-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: hv-blink 1.4s ease-in-out infinite;
}
@keyframes hv-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* Body */
.hv-body {
  display: flex;
  height: 256px;
}

/* Mapa */
.hv-map {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #111c2d;
}

.hv-streets {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

/* Lotes com animação de entrada */
.hv-lote { opacity: 0; animation: hv-lote-in .4s var(--ease-out) forwards; }
.hv-lote-1  { animation-delay: .1s; }
.hv-lote-2  { animation-delay: .2s; }
.hv-lote-3  { animation-delay: .25s; }
.hv-lote-4  { animation-delay: .15s; }
.hv-lote-5  { animation-delay: .35s; }
.hv-lote-6  { animation-delay: .4s; }
.hv-lote-7  { animation-delay: .3s; }
.hv-lote-8  { animation-delay: .45s; }
.hv-lote-9  { animation-delay: .5s; }
.hv-lote-10 { animation-delay: .55s; }
.hv-lote-11 { animation-delay: .6s; }
.hv-lote-12 { animation-delay: .65s; }
.hv-lote-13 { animation-delay: .7s; }
.hv-lote-14 { animation-delay: .75s; }
@keyframes hv-lote-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Marcadores pulsantes */
.hv-pin {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.hv-pin::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  opacity: .4;
  animation: hv-ping 2s ease-out infinite;
}
.hv-pin::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.hv-pin--green { animation-delay: 0s; }
.hv-pin--green::after  { background: #22c55e; }
.hv-pin--green::before { border: 2px solid #22c55e; animation-delay: 0s; }

.hv-pin--blue::after   { background: #3b82f6; }
.hv-pin--blue::before  { border: 2px solid #3b82f6; animation-delay: .5s; }

.hv-pin--amber::after  { background: #f59e0b; }
.hv-pin--amber::before { border: 2px solid #f59e0b; animation-delay: 1s; }

.hv-pin--red::after    { background: #ef4444; }
.hv-pin--red::before   { border: 2px solid #ef4444; animation-delay: .3s; }

@keyframes hv-ping {
  0%   { transform: scale(1);   opacity: .5; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Tooltip flutuante */
.hv-tooltip {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(10,18,30,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 8px 10px;
  animation: hv-tooltip-in .6s .8s var(--ease-out) both;
}
@keyframes hv-tooltip-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hv-tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 9.5px;
  line-height: 1.6;
}
.hv-tooltip-label { color: rgba(255,255,255,.45); }
.hv-tooltip-val   { color: rgba(255,255,255,.9); font-weight: 600; }
.hv-ok { color: #22c55e !important; }

/* Botão mapa */
.hv-map-btn {
  position: absolute;
  top: 10px; right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(47,138,95,.85);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background var(--dur-fast);
  animation: hv-tooltip-in .5s 1s var(--ease-out) both;
}
.hv-map-btn:hover { background: var(--brand-600); color: #fff; }

/* Sidebar */
.hv-sidebar {
  width: 110px;
  flex-shrink: 0;
  background: rgba(0,0,0,.3);
  border-left: 1px solid rgba(255,255,255,.07);
  padding: 10px 10px;
  overflow: hidden;
}
.hv-sidebar-title {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
  margin: 0 0 6px;
}
.hv-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.hv-stat-label { font-size: 9px;   color: rgba(255,255,255,.5); }
.hv-stat-val   { font-size: 10px;  font-weight: 700; color: rgba(255,255,255,.9); font-variant-numeric: tabular-nums; }

.hv-bar-wrap {
  height: 3px;
  background: rgba(255,255,255,.07);
  border-radius: 99px;
  margin-top: 3px;
  overflow: hidden;
}
.hv-bar {
  height: 100%;
  border-radius: 99px;
  width: 0;
  animation: hv-bar-grow .8s var(--ease-out) forwards;
}
.hv-bar:nth-child(1) { animation-delay: .3s; }
.hv-bar:nth-child(2) { animation-delay: .5s; }
.hv-bar:nth-child(3) { animation-delay: .7s; }
.hv-bar:nth-child(4) { animation-delay: .9s; }
@keyframes hv-bar-grow { to { width: var(--w, 100%); } }
.hv-bar--green  { background: #22c55e; }
.hv-bar--blue   { background: #3b82f6; }
.hv-bar--amber  { background: #f59e0b; }
.hv-bar--purple { background: #a855f7; }

.hv-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: 8px 0;
}

.hv-layers { }
.hv-layer {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: rgba(255,255,255,.35);
  padding: 2px 0;
}
.hv-layer--on { color: rgba(255,255,255,.75); }
.hv-layer-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: .5;
}
.hv-layer--on .hv-layer-dot { opacity: 1; }

/* Badges flutuantes */
.hero-badge-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  box-shadow: var(--sh-lg);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  pointer-events: none;
  animation: hv-tooltip-in .5s var(--ease-out) both;
}
.hero-badge-float i { color: var(--brand-500); font-size: 13px; }
.hero-badge-float--tl { top: -14px; left: -14px; animation-delay: 1s; }
.hero-badge-float--br { bottom: -14px; right: -14px; animation-delay: 1.2s; }

/* ── Responsivo ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 52px;
  }
  .hero-left { text-align: center; }
  .hero-description { margin: 0 auto 36px; }
  .hero-search-form { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-right { display: none; }
}

@media (max-width: 575px) {
  .main-title { font-size: 2.2rem; }
  #inicio { min-height: auto; padding-bottom: 0; }
}

/* ── Sobre (#sobre) ──────────────────────────────────────────── */
#sobre { background: var(--surface); }

.info-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-xl) !important;
  box-shadow: var(--sh-sm) !important;
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
  padding: 28px !important;
}
.info-card:hover {
  box-shadow: var(--sh-md) !important;
  transform: translateY(-4px);
}
.info-card img { opacity: .9; }
.info-card p { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* Feature list icons */
.icon-circle {
  background: var(--brand-50) !important;
  color: var(--brand-600) !important;
  border: 1px solid var(--brand-100);
  flex-shrink: 0;
}
.icon-circle .bi { color: var(--brand-600) !important; }

.feature-list h5 { color: var(--fg); font-weight: 600; font-size: .95rem; }
.feature-list p  { color: var(--muted); font-size: .88rem; line-height: 1.65; }
.feature-list hr { border-color: var(--border); opacity: 1; }

/* ── Geoserviços (#geoservicos) ──────────────────────────────── */
#geoservicos { background: var(--bg); }

.service-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base);
  height: 100%;
}
.service-item:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
}
.service-item .icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-lg);
  transition: transform var(--dur-base) var(--ease-out);
}
.service-item:hover .icon { transform: scale(1.08); }
.service-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}
.service-item p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.service-item .read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand-600);
  text-decoration: none;
  margin-top: 10px;
  transition: gap var(--dur-fast), color var(--dur-fast);
}
.service-item .read-more:hover { color: var(--brand-500); gap: 8px; }

/* Variantes de cor */
.service-item.item-cyan  { border-top: 3px solid var(--tech-cyan); }
.service-item.item-cyan  .icon { background: rgba(6,182,212,.1); color: var(--tech-cyan); }
.service-item.item-orange { border-top: 3px solid var(--accent-warm); }
.service-item.item-orange .icon { background: rgba(217,119,66,.1); color: var(--accent-warm); }
.service-item.item-teal  { border-top: 3px solid var(--brand-500); }
.service-item.item-teal  .icon { background: rgba(47,138,95,.1); color: var(--brand-500); }

/* ── Contato (#contato) ──────────────────────────────────────── */
#contato { background: var(--surface); }

.contact-card-left {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-xl) !important;
  box-shadow: var(--sh-sm) !important;
  overflow: hidden;
}
.contact-card-left h3 { font-size: 1.1rem; font-weight: 700; color: var(--fg); }

.icon-box {
  background: var(--brand-50) !important;
  color: var(--brand-600) !important;
  border: 1px solid var(--brand-100);
}
.icon-box .bi { color: var(--brand-600) !important; }
.contact-card-left h5 { font-size: .9rem; font-weight: 600; color: var(--fg); }
.contact-card-left .text-muted { color: var(--muted) !important; }

.map-container iframe { display: block; }

.contact-form-card {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-xl) !important;
  box-shadow: var(--sh-md) !important;
  background: var(--surface) !important;
}
.contact-form-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--fg); }
.contact-form-card .text-muted { color: var(--muted) !important; }

/* Floating labels override */
.form-floating > .form-control,
.form-floating > .form-select {
  border-radius: var(--r-md) !important;
  border: 1px solid var(--border) !important;
  background: var(--surface-2) !important;
  font-size: .88rem;
}
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: var(--brand-500) !important;
  box-shadow: var(--sh-focus) !important;
  background: var(--surface) !important;
}
.form-floating > label { font-size: .85rem; color: var(--muted); }

/* Botão submit */
.btn-submit-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--brand-500);
  color: #fff;
  font-family: var(--app-font);
  font-size: .9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  letter-spacing: .01em;
  box-shadow: 0 2px 8px rgba(47,138,95,.35);
  transition: all var(--dur-base) var(--ease-out);
}
.btn-submit-contact:hover:not(:disabled) {
  background: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(47,138,95,.4);
  color: #fff;
}
.btn-submit-contact:disabled { opacity: .65; cursor: not-allowed; }

/* gov-footer-* está em design.css (compartilhado em todas as páginas) */

/* ── Scroll top ──────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 5rem; right: 1.5rem;
  width: 40px; height: 40px;
  background: var(--brand-500);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--sh-md);
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-base) var(--ease-out);
  text-decoration: none;
  font-size: 1.2rem;
}
.scroll-top.active {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  background: var(--brand-600);
  color: #fff;
  transform: translateY(-3px);
}

/* ── Light background helper ─────────────────────────────────── */
.light-background { background: var(--surface) !important; }

/* ── KPI cards redesenhados ──────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 767px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px)  { .kpi-grid { grid-template-columns: 1fr; } }

.kpi-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px 20px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  cursor: default;
}
.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}

/* Ícone */
.kpi-card .kpi-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out);
}
.kpi-card:hover .kpi-icon { transform: scale(1.08) rotate(-4deg); }

/* Textos */
.kpi-card .kpi-body { flex: 1; min-width: 0; }
.kpi-card .kpi-value {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.kpi-card .kpi-label {
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: 2px;
}

/* Acento lateral direito */
.kpi-card .kpi-accent {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
}

/* Variantes de cor */
.kpi-card--blue   .kpi-icon { background: rgba(59,130,246,.12); color: #3b82f6; }
.kpi-card--blue   .kpi-accent { background: #3b82f6; }
.kpi-card--green  .kpi-icon { background: rgba(34,197,94,.12);  color: #22c55e; }
.kpi-card--green  .kpi-accent { background: #22c55e; }
.kpi-card--amber  .kpi-icon { background: rgba(245,158,11,.12); color: #f59e0b; }
.kpi-card--amber  .kpi-accent { background: #f59e0b; }
.kpi-card--teal   .kpi-icon { background: rgba(20,184,166,.12); color: #14b8a6; }
.kpi-card--teal   .kpi-accent { background: #14b8a6; }
.kpi-card--red    .kpi-icon { background: rgba(239,68,68,.12);  color: #ef4444; }
.kpi-card--red    .kpi-accent { background: #ef4444; }
.kpi-card--purple .kpi-icon { background: rgba(168,85,247,.12); color: #a855f7; }
.kpi-card--purple .kpi-accent { background: #a855f7; }

/* ── Info-cards coloridos ("Para que serve") ─────────────────── */
.info-card-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: transform var(--dur-base) var(--ease-out);
}
.info-card:hover .info-card-icon { transform: scale(1.1) rotate(-4deg); }

.info-card--cyan  { border-top: 3px solid #06b6d4 !important; }
.info-card--cyan  .info-card-icon { background: rgba(6,182,212,.1); color: #06b6d4; }

.info-card--amber { border-top: 3px solid #f59e0b !important; }
.info-card--amber .info-card-icon { background: rgba(245,158,11,.1); color: #f59e0b; }

.info-card--green { border-top: 3px solid var(--brand-500) !important; }
.info-card--green .info-card-icon { background: var(--brand-50); color: var(--brand-600); }

/* ── Portal do Cidadão — cards redesenhados ──────────────────── */
.portal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 20px 24px;
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base);
  color: var(--fg);
  cursor: pointer;
}
.portal-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
  color: var(--fg);
}
.portal-card h6 { font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.portal-card p  { color: var(--muted); font-size: .82rem; line-height: 1.5; }

/* Badge "online" */
.portal-card-badge {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #16a34a;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--r-full);
  padding: 2px 8px;
}
.portal-card-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22c55e;
  animation: hv-blink 1.6s ease-in-out infinite;
}

/* Ícone do portal card */
.portal-card-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  transition: transform var(--dur-base) var(--ease-out);
}
.portal-card:hover .portal-card-icon { transform: scale(1.1) rotate(-4deg); }

.portal-icon--green { background: rgba(34,197,94,.1);  color: #16a34a; }
.portal-icon--red   { background: rgba(239,68,68,.1);  color: #dc2626; }
.portal-icon--blue  { background: rgba(59,130,246,.1); color: #2563eb; }
.portal-icon--amber { background: rgba(245,158,11,.1); color: #d97706; }

/* Seta de "entrar" */
.portal-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .85rem;
  transition: background var(--dur-base), color var(--dur-base), transform var(--dur-base);
}
.portal-card:hover .portal-card-arrow {
  background: var(--brand-50);
  color: var(--brand-600);
  transform: translateX(3px);
}

/* ── Geoservicos table / badges / buttons / toast ────────────── */
.geo-table {
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}
.geo-table thead tr { background: var(--surface); }
.geo-table thead th {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.geo-table tbody td {
  padding: .7rem 1rem;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--fg);
}
.geo-table tbody tr:last-child td { border-bottom: none; }
.geo-table tbody tr:hover { background: rgba(0,0,0,.025); }
[data-theme="dark"] .geo-table tbody tr:hover { background: rgba(255,255,255,.04); }

.geo-badge {
  display: inline-flex;
  align-items: center;
  padding: .2em .6em;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.geo-badge-car    { background: rgba(34,197,94,.12);  color: #16a34a; }
.geo-badge-sudema { background: rgba(59,130,246,.12); color: #1d4ed8; }

.geo-btns {
  display: inline-flex;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.geo-btn {
  display: inline-flex;
  align-items: center;
  padding: .3em .75em;
  border-radius: var(--r-md);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: filter var(--dur-fast), transform var(--dur-fast);
  white-space: nowrap;
}
.geo-btn:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); }
.geo-btn-wms { background: rgba(59,130,246,.15); color: #2563eb; border-color: rgba(59,130,246,.3); }
.geo-btn-wfs { background: rgba(34,197,94,.15);  color: #16a34a; border-color: rgba(34,197,94,.3);  }
.geo-btn-kml { background: rgba(245,158,11,.15); color: #d97706; border-color: rgba(245,158,11,.3); }
.geo-btn-disabled,
.geo-btn:disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }

.geo-toast {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--fg);
  color: var(--bg);
  padding: .55rem 1.2rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  box-shadow: var(--sh-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 9999;
}
.geo-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
