/* ✅ Versão revisada e organizada do CSS da Atesta Mente */

/* 1. Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f7f7f7;
  color: #333;
}

a:focus,
button:focus {
  outline: 3px solid #28a745;
  outline-offset: 3px;
}

/* 2. Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* 3. Alternância de cores por seção */
section:nth-of-type(odd) {
  background-color: #f7f7f7;
  padding: 40px 0;
}

section:nth-of-type(even) {
  background-color: #ffffff;
  padding: 40px 0;
}

/* 4. Header fixo com transição */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  color: #fff;
  padding: 10px 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 50px;
  height: 50px;
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

.logo span {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo-text {
  position: relative;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 5px 0;
}

.logo-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #28a745;
  transition: width 0.3s ease;
}

/* Efeito ao passar o mouse */
.logo-text:hover::after {
  width: 100%;
}

/* 5. Navegação com hover animado */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #28a745;
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
  width: 100%;
}

/* 6. Botão mobile */
#menu-toggle {
  display: none;
}

/* 7. Hero Section */
.hero {
  text-align: center;
  position: relative;
  background: url("assets/clinica.png") no-repeat center center;
  background-size: cover;
  color: #fff;
  min-height: 100vh;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

@supports (height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  animation: mascaraOscila 60s ease-in-out infinite;
}

@keyframes mascaraOscila {
  0% {
    background-color: rgba(0, 0, 0, 0.6);
  }
  50% {
    background-color: rgba(0, 0, 0, 0.4);
  }
  100% {
    background-color: rgba(0, 0, 0, 0.6);
  }
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero-content {
  text-align: center;
  position: relative;
}

.cta-button-hero {
  background-color: #28a745;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button-hero:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

.carimbo {
  position: absolute;
  top: -60px;
  right: 0;
  width: 120px;
  opacity: 0;
  transform: scale(0.5) rotate(-20deg);
  animation: carimboAnim 0.8s forwards;
  animation-delay: 1s;
}

.carimbo img {
  width: 100%;
  height: auto;
}

@keyframes carimboAnim {
  to {
    opacity: 0.8;
    transform: scale(1) rotate(12deg);
  }
}

/* Ícones WhatsApp */
.whatsapp-icon {
  width: 1.25rem;
  height: auto;
  vertical-align: middle;
  margin-right: 0.5rem;
  margin-top: -0.2rem;
}

/* Seta para baixo */
.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #fff;
  animation: bounceDown 2s infinite;
  z-index: 2;
  opacity: 0.8;
  cursor: pointer;
  text-decoration: none;
}

.scroll-down a {
  color: inherit; /* Herda a cor do pai, no caso #fff */
  text-decoration: none; /* Remove sublinhado */
}

@keyframes bounceDown {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* Seções gerais */
section {
  margin-bottom: 0;
  animation: fadeIn 1s ease-in;
}

section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #001f3f;
}

/* Boas-vindas */
#boas-vindas .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.boas-vindas-text,
.boas-vindas-imagem {
  flex: 1;
  min-width: 250px;
}

.boas-vindas-imagem img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Passos */
.steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.step {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  width: calc(33.33% - 13.33px);
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
}

.step img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .step,
  .testimonial {
    width: 100%;
  }
  .step img {
    max-width: 200px;
    height: auto;
  }
}

/* Sobre */
#quem-somos .about {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

#quem-somos .about img {
  max-width: 40%;
  height: auto;
}

#quem-somos .about-text {
  flex: 1;
}

/* Alinhar ao centro especificamente dentro da sessão "Quem Somos" */
.quem-somos-selo {
  justify-content: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.selo-icon {
  width: 96px;
  height: 96px;
}

.selo-confianca {
  background-color: #eefbf4;
  color: #1b5e20;
  border-left: 6px solid #43a047;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  max-width: 600px;
  margin: 40px auto 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Concursos */
.lista-concursos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}

.lista-concursos li {
  font-size: 1.1rem;
  position: relative;
  margin-bottom: 8px;
}

/* FAQ */
.faq-item {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-item summary {
  font-weight: bold;
  font-size: 1.1rem;
  padding: 15px 20px;
  cursor: pointer;
  list-style: none;
  background-color: #f2f2f2;
  transition: background-color 0.3s, color 0.3s ease;

  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item[open] summary {
  background-color: #e9ecef;
}

/* Setinha que gira */
.arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-top: 3px;
}

/* Gira para baixo quando aberto */
.faq-item[open] .arrow {
  transform: rotate(-45deg);
}

.faq-item p {
  padding: 0 20px 15px;
  line-height: 1.5;
}

/* Contato */
#contato {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: #fff;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  margin: 40px auto;
  max-width: 600px;
  transition: transform 0.3s ease;
}

#contato:hover {
  transform: scale(1.02);
}

.cta-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .cta-container {
    flex-direction: row;
  }
}

.cta-button {
  background-color: #fff;
  color: #218838;
  font-weight: bold;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: #001f3f;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

footer a {
  color: #28a745;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #218838;
}

/* Mobile Nav */
@media (max-width: 768px) {
  #menu-toggle {
    display: block;
    margin-left: auto;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #fff;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #001f3f;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 80px 20px;
    z-index: 2000;
  }

  .nav-menu li {
    margin-bottom: 20px;
  }

  .nav-menu.active {
    display: flex;
  }
}

/* Animação de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.whatsapp-float img {
  width: 48px;
  height: 48px;
  border-radius: 25%;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.whatsapp-float img:hover {
  transform: scale(1.1);
  opacity: 0.9;
}
