:root {
  --cyan: #10c4df;
  --blue: #1967d2;
  --deep: #071826;
  --ink: #102536;
  --muted: #657888;
  --paper: #f7fbf8;
  --mint: #8fe6c8;
  --sun: #f6c453;
  --coral: #ff6f61;
  --violet: #7c5cff;
  --leaf: #49bd83;
  --line: rgba(16, 37, 54, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(18px, 7vw, 110px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.44);
  background: linear-gradient(90deg, rgba(16, 196, 223, 0.94), rgba(143, 230, 200, 0.92));
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(16, 37, 54, 0.12);
}

.brand,
h1,
h2 {
  font-family: "Sora", "Manrope", Arial, sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--deep);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
  text-decoration: none;
}

.brand::before {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: conic-gradient(from 40deg, var(--blue), var(--cyan), var(--sun), var(--blue));
  content: "";
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.28);
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 54px);
}

.menu a {
  color: rgba(7, 24, 38, 0.78);
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  font-weight: 800;
  text-decoration: none;
}

.menu a:hover {
  color: var(--deep);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  padding: clamp(42px, 6vw, 82px) clamp(18px, 7vw, 110px) 44px;
  background:
    radial-gradient(circle at 80% 18%, rgba(246, 196, 83, 0.32), transparent 27%),
    radial-gradient(circle at 18% 84%, rgba(124, 92, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #f8fff9 0%, #eaf8ff 46%, #fff8ec 100%);
}

.hero::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(16, 37, 54, 0.08);
  border-radius: 28px;
  content: "";
  pointer-events: none;
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.56;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    repeating-linear-gradient(33deg, transparent 0 52px, rgba(25, 103, 210, 0.07) 53px 55px);
  background-size: 78px 78px, 78px 78px, auto;
  mask-image: radial-gradient(circle at 58% 42%, black, transparent 76%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: var(--sun);
  content: "";
}

h1 {
  max-width: 820px;
  margin: 0;
  color: var(--deep);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
}

.hero-copy p:last-of-type {
  max-width: 58ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(16, 37, 54, 0.12);
  border-radius: 8px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(16, 37, 54, 0.08);
}

.hero-actions a:first-child {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.rn-stage {
  position: relative;
  z-index: 2;
  width: min(980px, 88vw);
  margin: -20px auto 0;
}

.rn-stage::after {
  position: absolute;
  right: 2%;
  top: 18%;
  width: 30%;
  height: 52%;
  border-radius: 50%;
  background: rgba(16, 196, 223, 0.08);
  content: "";
  filter: blur(6px);
}

.rn-map {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  filter: drop-shadow(0 32px 28px rgba(16, 37, 54, 0.16));
}

.elephant-shadow path {
  fill: rgba(7, 24, 38, 0.08);
  transform: translate(14px, 18px);
}

.rn-outline {
  fill: rgba(255, 255, 255, 0.72);
  stroke: rgba(7, 24, 38, 0.3);
  stroke-width: 5;
}

.rn-border {
  fill: none;
  stroke: rgba(7, 24, 38, 0.45);
  stroke-linejoin: round;
  stroke-width: 6;
  pointer-events: none;
}

.municipios path {
  cursor: pointer;
  stroke: rgba(255, 255, 255, 0.66);
  stroke-width: 4;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
  transform-origin: center;
}

.municipios path:nth-child(6n + 1) {
  fill: #1967d2;
}

.municipios path:nth-child(6n + 2) {
  fill: #10c4df;
}

.municipios path:nth-child(6n + 3) {
  fill: #49bd83;
}

.municipios path:nth-child(6n + 4) {
  fill: #f6c453;
}

.municipios path:nth-child(6n + 5) {
  fill: #ff6f61;
}

.municipios path:nth-child(6n) {
  fill: #7c5cff;
}

.municipios:hover path {
  opacity: 0.62;
}

.municipios path:hover,
.municipios path:focus {
  opacity: 1;
  filter: drop-shadow(0 11px 14px rgba(7, 24, 38, 0.22));
  transform: translateY(-6px) scale(1.012);
  outline: none;
}

.wind-points circle {
  fill: white;
  stroke: var(--deep);
  stroke-width: 3;
  animation: pulse 2.4s ease-in-out infinite;
}

.wind-points circle:nth-child(2) {
  animation-delay: 0.25s;
}

.wind-points circle:nth-child(3) {
  animation-delay: 0.5s;
}

.wind-points circle:nth-child(4) {
  animation-delay: 0.75s;
}

.wind-points circle:nth-child(5) {
  animation-delay: 1s;
}

@keyframes pulse {
  50% {
    r: 10;
    opacity: 0.68;
  }
}

.tooltip {
  position: absolute;
  left: 52%;
  top: 47%;
  z-index: 4;
  min-width: 226px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  color: white;
  background: rgba(7, 24, 38, 0.82);
  box-shadow: 0 20px 38px rgba(7, 24, 38, 0.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  backdrop-filter: blur(14px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, -64%);
}

.tooltip span {
  display: block;
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tooltip strong {
  display: block;
  margin-top: 3px;
  font-size: 1.12rem;
}

.stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 920px;
  margin: -10px auto 0;
}

.stats div,
.data-grid article {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 36px rgba(16, 37, 54, 0.1);
  backdrop-filter: blur(12px);
}

.stats div {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
}

.stats div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(var(--cyan), var(--sun), var(--coral));
  content: "";
}

.stats span,
.stats small {
  display: block;
  color: var(--muted);
}

.stats strong {
  display: block;
  margin: 4px 0;
  color: var(--deep);
  font-family: "Sora", sans-serif;
  font-size: clamp(1.7rem, 3.1vw, 2.7rem);
  line-height: 1;
}

.wind-mark {
  position: absolute;
  right: clamp(22px, 7vw, 110px);
  bottom: 58px;
  z-index: 1;
  width: 110px;
  height: 140px;
  opacity: 0.62;
}

.wind-mark::before,
.wind-mark::after,
.wind-mark span {
  position: absolute;
  content: "";
  background: var(--deep);
}

.wind-mark::before {
  left: 53px;
  top: 38px;
  width: 5px;
  height: 100px;
  border-radius: 99px;
}

.wind-mark::after {
  left: 16px;
  top: 32px;
  width: 78px;
  height: 6px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: rotate(-22deg);
}

.wind-mark span {
  left: 50px;
  top: 3px;
  width: 7px;
  height: 78px;
  clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);
  transform-origin: 50% 52px;
  animation: spin 4s linear infinite;
}

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

.data-section,
.about-section,
.contact-section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 7vw, 110px);
}

.data-section {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.7fr);
  gap: 30px;
  background:
    linear-gradient(90deg, rgba(16, 196, 223, 0.13), rgba(143, 230, 200, 0.22)),
    #f8fffb;
}

h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.data-grid article {
  padding: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.data-grid article:hover {
  box-shadow: 0 26px 42px rgba(16, 37, 54, 0.13);
  transform: translateY(-4px);
}

.data-grid span {
  color: var(--coral);
  font-weight: 900;
}

.data-grid h3 {
  margin: 14px 0 8px;
  color: var(--deep);
  font-size: 1.05rem;
}

.data-grid p,
.about-section p,
.contact-section a {
  color: var(--muted);
  line-height: 1.6;
}

.about-section {
  max-width: none; /* Ocupa a largura total da página assim como os outros blocos */
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.09), transparent 46%),
    var(--paper);
}

.about-section p {
  max-width: 100%; /* Ocupa toda a metade esquerda da página sem compactar */
  font-size: 1.09rem;
}

/* --- LAYOUT DUAS COLUNAS: QUEM SOMOS --- */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- BARRA LATERAL: LOGOS --- */
.about-sidebar h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 15px;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
  text-align: center;
}

.logos-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center; /* Centralizar os placeholders com a linha superior */
  margin-bottom: 0;
  flex-wrap: wrap;
}

.logos-grid a img {
  height: 80px;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.88;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logos-grid a:hover img {
  opacity: 1;
  transform: translateY(-6px) scale(1.06);
  filter: drop-shadow(0 12px 20px rgba(15, 23, 42, 0.08));
}

/* --- PLACEHOLDERS DE LOGOS --- */
.logo-placeholder-link {
  text-decoration: none;
  display: inline-block;
}

.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 85px;  /* Maiores, conforme solicitado */
  width: 160px;  /* Ocupando a outra metade de forma robusta */
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.3rem;
  color: #64748b;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.logo-placeholder-link:hover .logo-placeholder {
  border-color: #0ea5e9;
  color: #0ea5e9;
  background: #f0f9ff;
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.1), 0 4px 6px -4px rgba(14, 165, 233, 0.1);
}

/* --- RODAPÉ: EQUIPE DE PESQUISA --- */
.footer-team {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 25px 0 20px;
  line-height: 1.6;
}

.footer-team strong {
  display: block;
  color: #ffffff;
  font-family: "Sora", "Manrope", Arial, sans-serif;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-team-members {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-team a {
  color: #10c4df;
  text-decoration: none;
  font-weight: 700;
  transition: color 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
}

.footer-team a:hover {
  color: #8fe6c8;
}

.member-role {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}

.lattes-icon-svg {
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  margin-top: -1px;
}



.contact-section {
  border-top: 1px solid var(--line);
  background: var(--deep);
}

.contact-section h2,
.contact-section .eyebrow {
  color: white;
}

.contact-section .eyebrow::before {
  background: var(--cyan);
}

.contact-section a {
  display: inline-block;
  margin-top: 18px;
  color: var(--mint);
  font-size: 1.2rem;
  font-weight: 800;
}

/* Rodapé Institucional */
.site-footer {
  background-color: #0f172a;
  color: #e2e8f0;
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-title {
  font-family: "Sora", "Manrope", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #ffffff;
}

.footer-credits {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0 0 20px;
}

.footer-github a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #10c4df;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 150ms ease;
}

.footer-github a:hover {
  color: #8fe6c8;
}

.github-icon {
  fill: currentColor;
}

@media (max-width: 780px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 14px;
  }

  .menu {
    width: 100%;
    gap: 12px;
    justify-content: space-between;
  }

  .menu a {
    font-size: 0.88rem;
  }

  .hero::before {
    inset: 8px;
    border-radius: 18px;
  }

  .rn-stage {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  #mapa-ibge {
    height: 380px !important;
  }

  .tooltip {
    left: 60%;
    min-width: 190px;
  }

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

  .wind-mark {
    display: none;
  }
}

/* Custom styling for the upload page */
.pagina-upload-conteiner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1; /* Isso força a área a crescer e empurra o footer para baixo */
  padding: 40px 20px;
  background: var(--paper);
}

.upload-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(16, 37, 54, 0.08);
  max-width: 600px;
  width: 100%;
  margin: 20px auto;
  border: 1px solid rgba(16, 37, 54, 0.06);
}

.upload-card h2 {
  color: var(--deep);
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.upload-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* File Input Drop Zone Customization */
.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background-color: #f8fafc;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, border-color 0.2s;
  text-align: center;
  margin-bottom: 24px;
}

.drop-zone:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.file-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--cyan);
}

.file-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.file-subtext {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Button layout */
.botoes-acao {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-submit {
  flex: 1;
  background: var(--blue);
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
}

.btn-submit:hover {
  background-color: #114fb0;
}

.btn-cancel {
  flex: 1;
  background: #e2e8f0;
  color: #475569;
  padding: 10px 20px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cancel:hover {
  background-color: #cbd5e1;
}

/* Django messages / Alerts styling */
.alerts-container {
  margin-bottom: 20px;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
}

.alert-success {
  background-color: rgba(73, 189, 131, 0.15);
  color: #1e7048;
  border: 1px solid rgba(73, 189, 131, 0.25);
}

.alert-error, .alert-danger {
  background-color: rgba(255, 111, 97, 0.15);
  color: #a82e23;
  border: 1px solid rgba(255, 111, 97, 0.25);
}

/* --- ESTILOS DA LOGO GEOBDG --- */
.logo-geobdg {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  color: #334155 !important;
  letter-spacing: -0.02em;
}
.logo-geobdg svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.logo-geobdg span { font-weight: 500; }
.logo-geobdg strong { font-weight: 800; color: #0ea5e9; }
.logo-helice {
  transform-origin: 25px 20px;
  animation: spinLogo 15s linear infinite;
  transition: animation-duration 0.3s ease;
}
.logo-geobdg:hover .logo-helice { animation-duration: 2.5s; }
@keyframes spinLogo { 100% { transform: rotate(360deg); } }

/* Oculta o quadrado conic-gradient da marca antiga no novo logo */
.logo-geobdg::before {
  display: none !important;
}

/* --- ESTILOS DE ANO DO RODAPÉ --- */
.footer-year {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 8px;
  margin-bottom: 0;
}

/* --- DESTAQUE DE DOWNLOAD COMPLETO --- */
.download-completo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  width: 100%;
}

.download-item-completo {
  max-width: 550px;
  width: 100%;
  border: 2px solid rgba(16, 196, 223, 0.4) !important;
  background: rgba(16, 196, 223, 0.03) !important;
}


