/* ==========================================================================
   Web Finder — Folha de Estilo Unificada
   ========================================================================== */
:root {
  --navy: #0f1b3e;
  --blue: #21409f;
  --blue-2: #3559c7;
  --sky: #eef3fc;
  --sky-2: #dbe5f8;
  --text: #1b2a55;
  --muted: #4b5a7d;
  --line: #d3ddf2;
  --r: 12px;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background: #ffffff;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid #f5b301;
  outline-offset: 2px;
}

.container {
  width: 92%;
  max-width: 1120px;
  margin: auto;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.15;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   PEGADAS HUMANAS DEFINITIVAS NO SITE (pegadas1.webp)
   ========================================================================== */
.marcas-pisadas-humanas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pisada-humana {
  position: absolute;
  background-image: url('pegadas1.webp');
  background-repeat: no-repeat;
  background-size: contain;
  filter: contrast(120%) drop-shadow(0 8px 16px rgba(15, 27, 62, 0.25));
  opacity: 0.28;
}

.pisada-1 {
  width: 320px;
  height: 480px;
  top: 8%;
  left: 2%;
  transform: rotate(-16deg);
}

.pisada-2 {
  width: 340px;
  height: 500px;
  bottom: 6%;
  right: 3%;
  transform: rotate(24deg);
}

@media (max-width: 768px) {
  .pisada-1 {
    width: 180px;
    height: 280px;
    top: 5%;
    left: -20px;
  }
  .pisada-2 {
    width: 200px;
    height: 300px;
    bottom: 5%;
    right: -20px;
  }
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
header {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  box-shadow: 0 2px 10px rgba(15, 27, 62, .25);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font: 700 1.6rem var(--display);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zoom-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 4px 10px;
  color: #ffffff;
}

.zoom-box i {
  font-size: 0.85rem;
}

.zoom-box select {
  background: transparent;
  color: #ffffff;
  border: 0;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  padding: 2px 4px;
}

.zoom-box select option {
  background: var(--navy);
  color: #ffffff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .88);
  font-size: .93rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}

nav a:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

nav a.active {
  background: #fff;
  color: var(--blue);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   LAYOUT VERTICALIZADO DO INDEX
   ========================================================================== */
.main-vertical {
  display: flex;
  flex-direction: column;
}

.secao-vertical {
  padding: 70px 0;
  position: relative;
}

.text-center {
  text-align: center;
}

.subtitulo-secao {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 10px;
  font-weight: 700;
}

.lead-vertical {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 8px auto 32px;
}

.hero-vertical {
  background: linear-gradient(180deg, var(--sky) 0%, rgba(238, 243, 252, 0.4) 80%, #ffffff 100%);
  padding: 50px 0 70px;
}

.hero-intro-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: left;
}

.mascote-destaque {
  width: 130px;
  filter: drop-shadow(0 8px 16px rgba(15, 27, 62, 0.15));
  animation: flutuarMascote 4s ease-in-out infinite alternate;
}

@keyframes flutuarMascote {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.badge-alerta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdf0cd;
  color: #946200;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.hero-text h1 {
  font-size: 3rem;
  color: var(--blue);
  margin-bottom: 6px;
}

.hero-text p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* Carrossel */
.carousel {
  position: relative;
  background: linear-gradient(135deg, var(--blue) 0%, #152d75 100%);
  color: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(33, 64, 159, .25);
  max-width: 920px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform .45s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  padding: 50px 70px 65px;
  text-align: center;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.icone-slide {
  font-size: 2.2rem;
  color: #ffd043;
  margin-bottom: 12px;
}

.carousel-slide h3 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.carousel-slide p {
  opacity: .95;
  font-size: 1.1rem;
  max-width: 600px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--blue);
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform .15s, background .15s;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  border: 0;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: width .25s, background .25s;
}

.carousel-dots button.active {
  width: 28px;
  background: #fff;
}

/* ==========================================================================
   VÍDEO
   ========================================================================== */
.secao-video {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.secao-video h2 {
  font-size: 2.4rem;
  color: var(--blue);
}

.video-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--r);
  box-shadow: 0 12px 30px rgba(15, 27, 62, 0.16);
  display: block;
}

.video-fallback {
  margin-top: 16px;
}

.btn-video-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(33, 64, 159, 0.08);
  color: var(--blue);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-video-link:hover {
  background: var(--blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-video-link i {
  color: #ff0000;
}

.btn-video-link:hover i {
  color: #ffffff;
}

/* ==========================================================================
   FLASHCARDS INTERATIVOS 3D
   ========================================================================== */
.secao-flashcards {
  background: var(--sky);
}

.secao-flashcards h2 {
  font-size: 2.5rem;
  color: var(--blue);
}

.flashcards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.flashcard {
  background: transparent;
  perspective: 1000px;
  min-height: 290px;
  cursor: pointer;
}

.flashcard:focus {
  outline: none;
}

.flashcard:focus .flashcard-inner {
  box-shadow: 0 0 0 3px #f5b301;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(15, 27, 62, 0.08);
}

.flashcard:hover .flashcard-inner,
.flashcard.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--r);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.flashcard-front {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text);
}

.card-numero {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-2);
  opacity: 0.4;
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--sky);
  color: var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.flashcard:hover .card-icon {
  transform: scale(1.1);
}

.flashcard-front h3 {
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 10px;
}

.card-hint {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.flashcard-back {
  background: linear-gradient(145deg, var(--blue) 0%, var(--navy) 100%);
  color: #ffffff;
  transform: rotateY(180deg);
  text-align: left;
  align-items: flex-start;
  justify-content: space-between;
}

.card-numero-back {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffd043;
}

.flashcard-back h4 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-top: 4px;
}

.flashcard-back p {
  font-size: 0.95rem;
  opacity: 0.95;
  line-height: 1.5;
}

.card-destaque {
  background: rgba(255, 255, 255, 0.12);
  border-left: 3px solid #ffd043;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.card-destaque i {
  color: #ffd043;
  flex-shrink: 0;
}

/* Seção 4: Banner CTA */
.secao-cta {
  background: #ffffff;
}

.cta-card {
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 50px 24px;
  max-width: 860px;
  margin: 0 auto;
}

.icone-cta {
  font-size: 2.8rem;
  color: var(--blue);
  margin-bottom: 14px;
}

.cta-card h2 {
  font-size: 2.3rem;
  color: var(--blue);
  margin-bottom: 10px;
}

.cta-card p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 24px;
}

.cta-botoes {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-cta {
  background: var(--blue);
  color: #fff;
  padding: 13px 26px;
  font-size: 1.05rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-secundario {
  background: #ffffff;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 11px 24px;
  font-size: 1.05rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

.btn-cta-secundario:hover {
  background: var(--sky);
  transform: translateY(-2px);
}

/* ==========================================================================
   SOBRE NÓS & EQUIPE
   ========================================================================== */
.sobre-projeto h2, .equipe h2 {
  font-size: 2.3rem;
  color: var(--blue);
  text-align: center;
  margin-bottom: 18px;
}

.sobre-projeto, .equipe {
  padding: 48px 16px;
}

.sobre-projeto {
  background: var(--sky);
  border-bottom: 1px solid var(--line);
}

.mascote-sobre-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
}

.aufinder-mascote-img {
  width: 170px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 16px rgba(15, 27, 62, 0.15));
  animation: flutuarMascote 3.5s ease-in-out infinite alternate;
}

.mascote-sobre-texto {
  text-align: left;
}

.mascote-sobre-texto h2 {
  text-align: left;
  margin-bottom: 12px;
}

.mascote-sobre-texto p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.equipe .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 620px;
  margin: 0 auto;
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 27, 62, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.equipe .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 27, 62, .14);
}

.equipe .card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.equipe .text-container {
  padding: 24px 28px;
  width: 100%;
  text-align: left;
}

.equipe .card h3 {
  font-size: 1.5rem;
  color: var(--blue);
}

.equipe .card p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================================================
   Demais Páginas (Cadastro, Lista, Contato)
   ========================================================================== */
.cadastro h2, .desaparecidos h2, .contato h2 {
  font-size: 2.3rem;
  color: var(--blue);
  text-align: center;
  margin-bottom: 18px;
}

.cadastro, .desaparecidos, .contato {
  padding: 40px 16px;
}

.contato > .container > p {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.cadastro form, .contato form {
  max-width: 560px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  text-align: left;
}

.contato form h3 {
  font-size: 1.3rem;
  color: var(--blue);
}

label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: -6px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  font: 1rem var(--body);
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
}

input[type=file] { padding: 9px; }
textarea { height: 96px; resize: vertical; }
.contato textarea { height: 140px; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 64, 159, .15);
}

::placeholder { color: #7383a6; }

.btn, button[type=submit], .btn-enviar, #verListaBtn, #gerar-projecao-btn, .search-container button, .modal button {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 13px 22px;
  font: 600 1rem var(--body);
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.btn:hover, button[type=submit]:hover, .btn-enviar:hover, #verListaBtn:hover, #gerar-projecao-btn:hover, .search-container button:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

#preview {
  display: none;
  max-width: 150px;
  max-height: 150px;
  border-radius: 10px;
  align-self: center;
}

/* Projeção IA */
.ia-projecao {
  background: #fff;
  border: 1px dashed var(--blue-2);
  border-radius: var(--r);
  padding: 16px;
}

.ia-projecao-head {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.ia-projecao-head i {
  font-size: 1.3rem;
  color: var(--blue);
  margin-top: 4px;
}

.ia-projecao-head strong {
  display: block;
  font: 700 1.1rem var(--display);
  text-transform: uppercase;
  color: var(--blue);
}

.ia-projecao-head p, .projecao-aviso, .projecao-loading {
  font-size: .88rem;
  color: var(--muted);
}

.ia-projecao-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.ia-projecao-row input { width: 90px; }
#gerar-projecao-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.projecao-loading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.projecao-resultado { margin-top: 14px; }
.projecao-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: center;
}

.projecao-item span {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.projecao-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.projecao-aviso { margin-top: 10px; }
.projecao-aviso i { color: var(--blue); }

/* ==========================================================================
   Lista de Desaparecidos
   ========================================================================== */
.desaparecidos {
  text-align: center;
  padding: 50px 20px;
}

.search-container {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

#searchInput,
#locationFilter {
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #333;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

#searchInput {
  width: 320px;
  max-width: 100%;
}

#searchInput::placeholder {
  color: var(--muted);
}

#searchInput:focus,
#locationFilter:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 64, 159, 0.15);
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

.card-desaparecido {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.card-desaparecido:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(33, 64, 159, 0.12);
  border-color: rgba(33, 64, 159, 0.3);
}

.card-desaparecido img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.card-desaparecido > div {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-desaparecido h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-family: var(--display);
  color: var(--blue);
  letter-spacing: 0.01em;
}

.card-desaparecido p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 4px 0;
}

.card-desaparecido .detalhes-btn {
  margin-top: auto;
  background-color: var(--blue);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 10px 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s, transform 0.1s;
  width: 100%;
  font-size: 0.95rem;
}

.card-desaparecido .detalhes-btn:hover {
  background-color: var(--navy);
}

/* ==========================================================================
   Modal de Detalhes (Centralizado e Responsivo)
   ========================================================================== */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  inset: 0; /* Substitui left/top/width/height para cobrir a tela toda perfeitamente */
  background-color: rgba(15, 27, 62, 0.75);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  /* Flexbox centralizador perfeito */
  display: none; /* Mantém oculto por padrão até o JS ativar, mude para flex no seu script ou controle via JS */
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Classe utilitária caso seu JS abra o modal alterando o display para flex */
.modal.active, .modal[style*="display: block"] {
  display: flex !important;
}

.modal-content {
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  padding: 35px;
  border-radius: 16px;
  width: 100%;
  max-width: 750px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto; /* Garante centralização extra no Flexbox */
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-flex-container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

#modalFoto {
  width: 220px;
  height: 260px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.modal-details {
  flex: 1;
  text-align: left;
}

.modal-details h3 {
  margin: 0 0 15px 0;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  border-bottom: 2px solid var(--sky);
  padding-bottom: 8px;
}

.modal-details p {
  margin: 8px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.modal-details p strong {
  color: var(--text);
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 30px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.close-btn:hover {
  color: var(--blue);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .modal {
    padding: 10px;
  }

  .modal-content {
    margin: auto;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-flex-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .modal-details {
    text-align: center;
  }

  #modalFoto {
    width: 160px;
    height: 190px;
  }

  .modal-details h3 {
    font-size: 1.6rem;
  }
}

#success-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  z-index: 1000;
  text-align: center;
}

#success-message h3 {
  color: var(--blue);
  margin-bottom: 12px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 62, .85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-box {
  background: #fff;
  padding: 28px 44px;
  border-radius: var(--r);
  text-align: center;
}

.loading-box i {
  font-size: 38px;
  color: var(--blue);
  margin-bottom: 8px;
}

/* Contato */
.informacoes-contato {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto 24px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.info-item i {
  font-size: 1.4rem;
  color: var(--blue);
}

.info-item p {
  margin: 0;
  text-align: left;
  color: var(--text);
  font-size: .98rem;
}

.info-item a {
  color: var(--blue);
  font-weight: 600;
}

/* Rodapé */
footer {
  background: var(--navy);
  color: #c8d4f0;
  text-align: center;
  padding: 22px 15px;
  font-size: .9rem;
  position: relative;
  z-index: 2;
}

footer a {
  color: #fff;
  font-weight: 600;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 900px) {
  .hero-intro-box, .mascote-sobre-box {
    flex-direction: column;
    text-align: center;
  }
  .mascote-sobre-texto, .mascote-sobre-texto h2 {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  nav.open { max-height: 400px; }
  nav ul {
    flex-direction: column;
    padding: 10px 16px 16px;
  }
  .carousel-slide { padding: 34px 28px 52px; }
  .carousel-slide h3 { font-size: 1.7rem; }
  .hero-text h1 { font-size: 2.3rem; }
}

@media (max-width: 480px) {
  .projecao-compare { grid-template-columns: 1fr; }
  .ia-projecao-row { flex-direction: column; }
  .ia-projecao-row input { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
