/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Hero geral */
.hero {
  height: 90vh;
  background: url('../img/hero-bg.png') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}
.hero.overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero .display-1 {
  font-size: 3rem;
}
@media (min-width: 768px) {
  .hero .display-1 {
    font-size: 4rem;
  }
}
.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #fff;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

/* Stats */
.stats {
  counter-reset: section;
}
.counter {
  font-size: 3rem;
  font-weight: bold;
}
.stats p {
  margin-top: 0.5rem;
}

/* Cards Modernos */
.card-modern {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.card-modern .carousel img,
.card-modern .card-img-top {
  height: 220px;
  object-fit: cover;
}

/* Serviços */
.services i {
  transition: transform 0.3s;
}
.services i:hover {
  transform: scale(1.2);
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #0d6efd, #6610f2);
}

/* Scroll to top */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-size: 2rem;
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
  color: #0d6efd;
}
@media (hover:hover) {
  #scrollTopBtn:hover {
    color: #6610f2;
  }
}

/* Responsive tweaks */
@media (max-width: 576px) {
  .hero .lead {
    font-size: 1rem;
  }
  .services .col-md-4 {
    text-align: center;
  }
}

/* ============================ */
/* Hero Carousel / Slider Styles */
/* ============================ */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

/* Altura e background dos slides */
.hero-carousel .carousel-item {
  height: 80vh;
  min-height: 300px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

/* Overlay escuro para contraste do texto */
.hero-carousel .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Link que cobre o slide, centralizando texto */
.hero-carousel .carousel-item a.d-block {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: white;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

/* Caixa da legenda centralizada */
.hero-carousel .carousel-caption {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  text-align: center;
}

/* Títulos e subtítulos */
.hero-carousel h2.display-4 {
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-carousel p.lead {
  font-size: 1.25rem;
}

/* Botões controles */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7));
}

/* Ajustes responsivos */

@media (max-width: 991.98px) {
  .hero-carousel .carousel-item {
    height: 60vh;
  }
  .hero-carousel h2.display-4 {
    font-size: 2.2rem;
  }
  .hero-carousel p.lead {
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-carousel .carousel-item {
    height: 40vh;
  }
  .hero-carousel .carousel-caption {
    max-width: 90%;
    padding: 0.8rem 1rem;
  }
  .hero-carousel h2.display-4 {
    font-size: 1.6rem;
  }
  .hero-carousel p.lead {
    font-size: 1rem;
  }
}
