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

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* FAIXA AZUL TOPO */
.top-bar {
  background-color: #004080; /* azul */
  color: #fff;
  padding: 4px 12px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end; /* ícones à direita */
  align-items: center;
}

.top-bar .social-links a {
  color: #fff;
  margin-left: 12px;
  font-size: 18px;
  text-decoration: none;
}

.top-bar .social-links a:hover {
  color: #ffd700;
}


/* HEADER */
.header {
  position: fixed;
  top: 20px;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  z-index: 1000;
}

.logo {
  height: 70px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #2563EB;
}

/* MENU MOBILE */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

.nav.active {
  display: block;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  width: 200px;
  border: 1px solid #eee;
}

.nav.active ul {
  flex-direction: column;
  gap: 15px;
  padding: 15px;
}

/* MAIN */
main {
  padding-top: 100px;
}

/* HERO */
.hero {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: relative;   /* importante: relativo */
  width: 100%;
  height: 100%;
  background: none;
  color: #fff;
}

.btn-top {
  display: inline-block;
  background: #1E3A8A;
  color: #fff !important;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.btn-top:hover {
  background: #1E40AF;
}

/* Texto no terço inferior */
.hero-bottom {
  position: absolute;
  bottom: 0%;
  left: 0;              /* começa na borda esquerda */
  transform: none;      /* remove o translateX */
  text-align: center;
  color: #fff;
  width: 100%;          /* ocupa toda a largura do banner */
  max-width: none;      /* remove limite */
}


.hero-bottom h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.0rem;
  margin-bottom: 5px;
  line-height: 1.2;
  white-space: nowrap; /* mantém tudo em uma linha */
}

.hero-bottom p {
  font-size: 1.0rem;
  margin-bottom: 20px;
  max-width: 600px;
  margin: 0 auto;
}

/* SERVIÇOS */
.services {
  padding: 80px 20px;
  background: #f9f9f9;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.card img {
  max-height: 250px;
  object-fit: cover;
  border-radius: 6px;
}

/* DEPOIMENTOS */
.depoimentos {
  padding: 60px 20px;
  text-align: center;
}

.carousel {
  overflow: hidden;
  position: relative;
  max-width: 100%;
}

.carousel-track {
  display: flex;
  justify-content: center;
  gap: 15px;
  min-height: 200px;
  padding: 0 15px;
}

.comentario {
  flex: 0 0 33.33%;
  box-sizing: border-box;
  padding: 12px;
  background: #f0f4f8;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  opacity: 0;
  transform: rotateY(90deg);
  transition: transform 1.5s ease, opacity 1.5s ease;
  pointer-events: none;
  text-align: center;
  height: 180px;
  border: 3px solid #c2c9d6;
  position: absolute;
  visibility: hidden;
}

.comentario.active {
  opacity: 1;
  transform: rotateY(0deg);
  pointer-events: auto;
  position: relative;
  visibility: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stars {
  color: #FFD700;
  font-size: 1.2rem;
}

/* FOOTER */
.footer {
  background: #2563EB;
  color: #fff;
  padding: 20px;
  text-align: center;
}

.footer nav a {
  color: #fff;
  margin: 0 8px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer nav a:hover {
  color: #dbeafe;
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* SLIDES ESPECÍFICOS */

/* Versão desktop */
.hero-slide.dna {
  background-image: url('../images/dnanew.png');
  background-size: cover;
  background-position: center;
}

.hero-slide.biopsia {
  background-image: url('../images/biopsia2.png');
  background-size: cover;
  background-position: center;
}

.hero-slide.sexagem {
  background-image: url('../images/sexagem8.png');
  background-size: cover;
  background-position: center;
}

.hero-slide.online {
  background-image: url('../images/online8.png');
  background-size: cover;
  background-position: center;
}

/* Versão mobile */
@media (max-width: 768px) {
  .hero-slide.dna {
    background-image: url('../images/dnamob2.png');
    background-size: cover;
    background-position: center;
  }

  .hero-slide.biopsia {
    background-image: url('../images/biomob3.png');
    background-size: cover;
    background-position: center;
  }

  .hero-slide.sexagem {
    background-image: url('../images/sexmob3.png');
    background-size: cover;
    background-position: center;
  }

  .hero-slide.online {
    background-image: url('../images/onlinemob3.png');
    background-size: cover;
    background-position: center;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .logo {
    height: 60px;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    height: 90vh;
  }

  .hero-bottom h1 {
    font-size: 1.8rem;
  }

  .hero-bottom p {
    font-size: 1rem;
  }

  .carousel-track {
    flex-direction: column;
    gap: 20px;
    padding: 0;
  }

  .comentario {
    flex: 0 0 100%;
    position: relative;
    visibility: visible;
    opacity: 1;
    transform: none;
    height: auto;
  }

  /* Botão no mobile: desce abaixo da logo */
  .hero-top {
    top: 50px;   /* ajuste aqui para não ficar em cima da logo */
    z-index: 2000;
  }

  .btn-top {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

/* MAPA em círculo */
.map-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 0%;
  border: 3px solid #000;
  margin-top: 15px;
  transition: transform 0.3s;
}

.map-image:hover {
  transform: scale(1.05);
}

/* Layout contato */
.contact-flex {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 250px;
}

/* Botão colado no topo do banner (desktop) */
.hero-top {
  position: absolute;
  top: 120px;   /* altura ideal que você encontrou */
  left: 0;
  width: 100%;              /* ocupa toda a largura da tela */
  text-align: center;       /* centraliza o botão */
  z-index: 2000;
}

.hero-top::after {
  content: "";
  display: block;
  width: 100%;
  height: 10px;
  background: #004080; /* mesma cor do botão */
  margin-top: -11px;    /* cola na base do botão */
}


.hero-highlight {
  background-color: #1E3A8A;
  color: #fff;
  padding: 7px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0; /* cantos retos */
}

/* ... outras regras ... */

/* MOBILE */
@media (max-width: 768px) {
 
  .hero-bottom h1, 
.hero-bottom p {
  animation: fadeInUp 1.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

  .hero-bottom p {
  animation-delay: 0.3s; /* aparece 0.3s depois do h1 */
}

  .hero-highlight {
  background-color: #1E3A8A;   /* mesma cor do botão */
  color: #fff;                 /* texto branco */
  padding: 25px 20px;               /* espaço interno */
  text-align: center;          /* centraliza o texto */
  width: 100%;                 /* ocupa toda a largura do banner */
  margin-left: -50vw; /* “puxa” para esquerda */ 
  left: 50%; /* centraliza */ 
  position: relative;
  box-sizing: border-box;
  border-radius: 0px;          /* opcional: cantos arredondados */
}

.hero-highlight h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  margin-top: -15px; /* sobe o título */
}

.hero-highlight p {
  font-size: 0.8rem;
  line-height: 0.7;
  margin-top: -6px; /* sobe o parágrafo */
  white-space: nowrap; /* força ficar em uma linha só */ 
  overflow: hidden; /* evita estourar a largura */ 
  text-overflow: ellipsis; /* se passar do limite, mostra "..." */
}

  .btn-top {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 60px; /* sobe o botão no mobile */
    right: 10px;  /* opcional: ajusta mais para dentro */
  }
}

.whatsapp-menu {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #25D366;
  padding: 12px;
  border-radius: 8px;
  display: none; /* escondido por padrão */
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.whatsapp-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

@media (max-width: 768px) {
  .footer .container {
    flex-direction: column;   /* empilha os blocos */
    align-items: center;
    gap: 6px;                 /* espaço entre links e © */
    text-align: center;
    padding: 8px 0;
  }

  .footer nav {
    display: inline-block;    /* mantém os links em linha */
  }

  .footer nav a {
    font-size: 14px;          /* fonte menor para caber melhor */
    margin: 0 4px;            /* espaçamento lateral */
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 4px 0;            /* reduz a altura da faixa azul */
  }

  .footer .container {
    flex-direction: column;    /* empilha os blocos */
    align-items: center;
    gap: 4px;                  /* menos espaço entre links e © */
    text-align: center;
  }

  .footer nav {
    display: inline-block;     /* mantém os links em linha */
  }

  .footer nav a {
    font-size: 14px;           /* fonte menor */
    margin: 0 4px;             /* espaçamento lateral */
  }
}

@media (max-width: 768px) {
  main {
    padding-top: 80px; /* reduz espaço no mobile */
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 3px 8px; /* faixa bem fina */
  }

  .top-bar .social-links a {
    font-size: 14px; /* ícones menores, não forçam altura */
  }
}

@media (min-width: 769px) {
  .logo {
    margin-top: 20px; /* afasta o logo da faixa azul só no desktop */
  }

  main {
    padding-top: 130px; /* compensa o aumento do header, para o banner não ficar colado */
  }
}

@media (min-width: 769px) {
  .hero {
    height: 100vh; /* aumenta a altura do banner no desktop */
  }
}

@media (min-width: 769px) {
  .nav {
    position: relative;
    right: -95px; /* desloca todo o menu mais para a direita */
  }

  .nav ul {
    display: flex;
    justify-content: flex-start; /* mantém os itens em sequência normal */
    gap: 10px;
  }
}


  .nav ul li a {
    border: 2px solid #004080;
    padding: 5px 12px;
    margin: 0 4px;
    border-radius: 15px;
    text-decoration: none;
    color: #004080;
    background-color: #fff;
    transition: background-color 0.3s, color 0.3s;
  }

  .nav ul li a:hover {
    background-color: #004080;
    color: #fff;
  }
}

@media (min-width: 769px) {
  .hero-top {
    top: 150px; /* desce mais o botão no desktop */
  }

  .btn-top {
    border-radius: 5px; /* mantém formato quadrado */
    background: #1E3A8A; /* azul atual */
    color: #fff !important;
    padding: 6px 12px; /* um pouco maior para dar destaque */
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s ease;
  }

  .btn-top:hover {
    background: #1E40AF; /* azul mais escuro no hover */
  }
}

@media (max-width: 768px) {
  .hero-top {
    top: 100px; /* desce mais o botão no mobile */
  }

  .btn-top {
    font-size: 0.9rem;   /* reduz o tamanho da fonte */
    padding: 8px 16px;   /* botão menor e mais compacto */
    border-radius: 5px;  /* mantém formato quadrado suave */
  }
}

.contact {
  margin-bottom: 40px; /* dá um respiro antes do footer */
}

.map-image {
  margin-bottom: 20px; /* espaço extra abaixo do mapa */
}

.horario-box {
  background-color: #e6f0fa; /* azul acinzentado claro */
  border: 2px solid #004080; /* borda azul */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px; /* respiro antes do mapa */
  color: #333;
}

.horario-box h2 {
  color: #004080;
  margin-bottom: 10px;
  text-align: center;
}

.horario-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.horario-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.horario-box li {
  display: flex;              /* coloca dia e hora lado a lado */
  justify-content: space-between; /* joga o horário para a direita */
  padding: 4px 0;
  border-bottom: 1px solid #dbeafe; /* linha suave separando */
}

.horario-box .dia {
  font-weight: 600;
  color: #004080;
}

.horario-box .hora {
  color: #333;
}

@media (max-width: 768px) {
  .contact-flex {
    flex-direction: column;   /* empilha os blocos */
    align-items: center;      /* centraliza horizontalmente */
    text-align: center;       /* centraliza o texto */
  }

  .contact-info {
    text-align: center;       /* garante que o texto do contato fique centralizado */
  }

  .horario-box {
    width: 100%;              /* ocupa toda a largura disponível */
    max-width: 350px;         /* limite para não ficar muito largo */
    margin: 0 auto 20px auto; /* centraliza e dá respiro abaixo */
  }

  .map-image {
    display: block;
    margin: 10px auto 20px auto; /* centraliza o mapa e dá espaço abaixo */
  }
}

.horario-box li {
  margin: 5px 0;
  font-size: 0.95rem;
}

