/* Estilização global  */
* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

.hero-cover {
  background-image: url("../img/capaprojeto.webp");
}

.cv-auto {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

/* Skip link  */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  background: #1d4ed8;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
  z-index: 1000;
}
.skip-link:focus {
  transform: translateY(0);
}

/* Navegação */
.nav-link {
  color: #000;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #1d4ed8;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #1d4ed8;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Link ativo na navegação */
.nav-link[aria-current="page"] {
  color: #1d4ed8;
}
.nav-link[aria-current="page"]::after {
  width: 100%;
}

/* Botões e cards  */
.btn-whatsapp {
  @apply bg-blue-700 hover:bg-blue-800 text-white px-6 py-3 rounded-full font-semibold;
}

.btn-primary {
  @apply bg-blue-700 hover:bg-blue-800 text-white px-6 py-3 rounded-lg font-semibold;
}

.card {
  @apply bg-white shadow p-6 rounded-xl;
}

.cta-button {
  @apply inline-flex items-center justify-center transition-all duration-300;
}

/* Configurações para vídeos */
video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Configurações para imagens na parte de avaliações */
.avaliacao-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.avaliacao-card:hover {
  transform: scale(1.05);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Grades de avaliações (depoimentos) */
.avaliacao-card img {
  transition: transform 0.3s ease;
}

.avaliacao-card:hover img {
  transform: scale(1.02);
}

/* Depoimentos sem moldura/efeitos */
.depoimentos-legiveis img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.depoimentos-legiveis video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video container */
.video-container iframe {
  @apply rounded-xl shadow;
}

/* Animações */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 1s ease forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 1s ease forwards;
}

.animate-slideInRight {
  animation: slideInRight 1s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.delay-200 {
  animation-delay: 0.2s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.delay-600 {
  animation-delay: 0.6s;
}
.delay-800 {
  animation-delay: 0.8s;
}

/* Efeitos hover */
.hover-lift {
  @apply transition-all duration-300;
}

.hover-lift:hover {
  @apply transform -translate-y-2 shadow-xl;
}

.gradient-blue {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.gradient-autism {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.glass-card {
  @apply bg-white/80 backdrop-blur-sm border border-white/20 shadow-xl;
}

.spinner {
  @apply animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600;
}

/* Responsividade melhorada */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  @apply bg-blue-50;
}

::-webkit-scrollbar-thumb {
  @apply bg-blue-700 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
  @apply bg-blue-800;
}

/* Efeitos de foco para acessibilidade */
button:focus,
a:focus {
  @apply outline-none ring-2 ring-blue-700 ring-offset-2;
}

/* Animações de entrada para elementos */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Efeito parallax suave */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
  .parallax {
    background-attachment: scroll;
  }
}
