@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&display=swap');
/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cabin", sans-serif;
}

body {
  background: linear-gradient(135deg, #0a0a1a, #1c1c3c);
  color: #f4f4f9;
  text-align: center;
  min-height: 100vh;
  padding-top: 95px; /* espaço pro header fixo */
  font-family: "Cabin", sans-serif;
}
section {
  scroll-margin-top: 115px;
}

/* Cabeçalho */
header {
  background: linear-gradient(90deg, #0059ff, #5f95c1);
  color: white;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  text-align: center;
}

header img {
  height: 80px;
  margin-right: 10px;
  vertical-align: middle;
  order: 1;
}

header a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

#Inicio {
  scroll-margin-top: 110px;
}

/* Navegação */
.navbar {
  display: flex;
  align-items: center;
  gap: 20px;
  order: 2;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #00AEEF;
}

/* Botão hambúrguer */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Formulário de busca */
.search-form {
  order: 4;
  display: flex;
  align-items: center;
  margin-left: 20px;
}
.search-form input {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 20px 0 0 20px;
  outline: none;
  height: 40px;
}
.search-form button {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-left: none;
  background: #0073e6;
  color: white;
  cursor: pointer;
  height: 40px;
  border-radius: 0 20px 20px 0;
}

/* Intro vídeo / Slideshow */
.intro-video {
  width: 100%;
  height: calc(100vh - 95px);
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
  border-radius: 15px;
}
.intro-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.slideshow-container {
  width: 99%;
  height: calc(100vh - 95px);
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.fade {
  animation: fadeEffect 1.5s;
}
@keyframes fadeEffect {
  from {opacity: 0.4;}
  to {opacity: 1;}
}

/* Evita fundo preto enquanto a imagem carrega e garante altura mínima */
.slide,
.slide img {
  background-color: #f4f4f4; /* cor neutra enquanto carrega */
}

.slideshow-container { 
  background-color: #f4f4f4; /* fallback do container */
}

/* Garante área visível antes da imagem carregar (ajuste conforme necessário) */
.slide img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 300ms ease;
}

/* Quando imagem carregou aplicamos fade-in */
.slide img.loaded {
  opacity: 1;
}

/* Setas de navegação */
.slideshow-container .prev,
.slideshow-container .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px 12px;
  margin-top: -22px;
  color: #fff;
  font-weight: bold;
  font-size: 2.2rem;
  user-select: none;
  background: rgba(0,0,0,0.3);
  z-index: 10;
  transition: background 0.2s;
}
.slideshow-container .next { right: 0; border-radius: 3px 0 0 3px; }
.slideshow-container .prev { left: 0; }
.slideshow-container .prev:hover,
.slideshow-container .next:hover {
  background: rgba(0,0,0,0.6);
}

/* Bolinhas de navegação */
.dots {
  text-align: center;
  position: absolute;
  width: 100%;
  bottom: 18px;
  left: 0;
  z-index: 11;
}
.dot {
  cursor: pointer;
  height: 13px;
  width: 13px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background 0.3s;
  border: 2px solid #fff;
}
.dot.active,
.dot:hover {
  background-color: #00AEEF;
  border-color: #00AEEF;
}

/* Tópicos */
.topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 30px;
  justify-items: center;
}
.topic {
  background: linear-gradient(135deg, #8A2BE2, #00AEEF);
  color: white;
  text-align: center;
  padding: 20px;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
  font-size: 1rem;
  transition: transform 0.2s ease-in-out, background 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.topic img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}
.topic:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #FF00FF, #004080);
}

/* Por que escolher */
.why-choose {
  background: linear-gradient(135deg, #0a0a1a, #1c1c3c);
  color: #f4f4f9;
  padding: 70px 20px;
  text-align: center;
}
.why-choose .title {
  font-size: 2rem;
  margin-bottom: 50px;
  color: #00AEEF;
}
.why-choose .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature {
  background: rgba(255,255,255,0.05);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.feature .badge {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  color: white;
  background: linear-gradient(135deg, #8A2BE2, #00AEEF);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.feature h3 { font-size: 1.3rem; margin-bottom: 10px; color: #b6d7ff; }
.feature p  { font-size: 0.95rem; color: #ddd; }

/* Popup (contato e tópicos) */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.popup-content {
  background: #fff;
  color: #333;
  padding: 25px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  animation: popIn 0.3s ease;
  position: relative;
}
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2.2rem;
  font-weight: bold;
  color: #ff3333;
  cursor: pointer;
  background: #fff;
  border: 2px solid #ff3333;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 36px;
  text-align: center;
  transition: all 0.3s ease;
}
.popup-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}
.popup-links a {
  background: #00AEEF;
  color: white;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}
.popup-links a:hover {
  background: #0077aa;
  transform: scale(1.05);
}

/* Política de privacidade popup */
.popup-politica-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  text-align: justify;
  align-items: center;
  z-index: 3000;
}
.popup-politica-content {
  background: #fff;
  color: #222;
  padding: 30px 20px 10px 20px;
  border-radius: 12px;
  max-width: 700px;
  width: 95vw;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.popup-politica-fechar {
  position: absolute;
  top: 10px; right: 18px;
  font-size: 2rem;
  color: #ff3333;
  cursor: pointer;
  font-weight: bold;
  background: none;
  border: none;
}

/* Sobre */
.sobre {
  padding: 115px 20% 50px 20%;
  color: whitesmoke;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0.8;
}
.sobre h1,
.sobre h3,
.sobre p {
  margin: 10px 0;
}
.sobre img {
  width: 90%;
  border-radius: 10px;
}

/* Contato / Mapa */
.contato {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
  background: #fff;
  color: #333;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.contato-info {
  text-align: left;
  padding: 20px;
}
.contato-info h2 { color: #004080; margin-bottom: 10px; }
.contato-info hr { border: 1px solid #00AEEF; margin: 10px 0 20px 0; }
.contato-info p { margin-bottom: 15px; line-height: 1.6; margin: 10px; }
.contato-info p i { margin-right: 8px; color: #333; margin: 5px; }

.contato-mapa {
  width: 100%;
  height: 400px;
}
.contato-mapa iframe { width: 100%; height: 100%; border: 0; }

/* Botão WhatsApp */
.btn-whatsapp {
  border: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #25D366;
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  margin: 5px;
}
.btn-whatsapp i { font-size: 20px; }
.btn-whatsapp:hover { background-color: #1ebe5d; }

/* Footer */
footer {
  background: linear-gradient(90deg, #004080, #8A2BE2);
  color: white;
  padding: 30px 20px;
  margin-top: 40px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.4);
}
.footer-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.footer-logo img { width: 110px; height: 110px; }
.footer-links {
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-texto { padding-top: 20px; }
.footer-copy { font-size: 0.9rem; opacity: 0.8; }

/* Social icons */
.social-icon {
  order: 3;
  font-size: 2rem;
  color: #E1306C;
  margin: 10px;
  display: none;
  transition: transform 0.3s, color 0.3s;
}
@media (min-width: 1024px) {
  .social-icon { display: inline-block; }
}
.social-icon:hover { color: #c13584; transform: scale(1.2); }
.social-icon { margin: 0 8px; font-size: 22px; color: #fff; transition: transform 0.2s, color 0.2s; }
.chatgpt-icon, .Manus-icon {
  margin-top: 30px;
  height: 27px;
  filter: invert(100%);
  transition: transform 0.2s;
}
.social-icon:hover .chatgpt-icon {
  transform: scale(1.2);
  filter: invert(63%) sepia(91%) saturate(444%) hue-rotate(102deg) brightness(90%) contrast(92%);
}

/* Remove decoração padrão de links e usa fonte/cor herdadas */
a {
  text-decoration: none;
  color: inherit;
  font-family: inherit;
}

a:hover,
a:focus {
  text-decoration: none;
  color: inherit;
  outline: none;
}

/* Aumenta legibilidade: base menor (ajuste solicitado) */
html { font-size: 16px; } /* passou de 18px para 16px */
body { font-size: 1rem; line-height: 1.6; }

/* Faz elementos que usualmente ficam pequenos aumentarem (ajustado) */
.nav-links a,
.footer-texto,
.btn-whatsapp,
.popup-content,
.popup-content p,
.popup-content h2,
.topic,
.feature h3,
.feature p,
.contato-info p {
  font-size: 1rem; /* passou de 1.05rem para 1rem */
}

/* Garante que a imagem do popup caiba dentro do modal */
#popupImage,
.popup-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 12px;
  border-radius: 8px;
  object-fit: contain;
  max-height: calc(80vh - 160px); /* evita estourar o modal em telas pequenas */
}

/* Se o conteúdo do popup for grande, mostra scroll corretamente (já tem, reafirmamos) */
.popup-content { overflow: auto; }

/* botão e nav um pouco menores novamente */
.menu-toggle { font-size: 1.8rem; }
.nav-links a { padding: 10px 14px; }
.btn-whatsapp { font-size: 1.05rem; padding: 12px 20px; }

/* Responsivo */
@media (max-width: 992px) {
  .search-form { order: 2; }
  .navbar { order: 3; }
  .search-form input { width: 140px; }
  header { flex-direction: row; align-items: center; justify-content: space-between; padding: 15px; }
  section { scroll-margin-top: 125px; }
  .slideshow-container { height: 99%; margin: auto; }
  body { padding-top: 125px; }
  .topics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .slide img,
  .topic img,
  .sobre img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
  }
  .slideshow-container { height: auto; max-height: 80vh; }
  .contato { grid-template-columns: 1fr; }
  section { scroll-margin-top: 125px; }
  .contato-mapa { height: 300px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 8px;
  }
  .nav-links.show { display: flex; }
  .menu-toggle { display: block; }
  .slide img { object-fit: contain; border-radius: 0; }
}

@media (max-width: 600px) {
  .why-choose .grid { grid-template-columns: 1fr; }
  .slideshow-container { height: 99%; margin: auto; }
  .slide img { object-fit: cover; }
  body { padding-top: 120px; }
  .contato-mapa { height: 250px; }
  .sobre { padding-left: 10%; padding-right: 10%; }
  .topics { grid-template-columns: 1fr; }
}