:root {
  --bs-primary: #0065ff;
  --bs-primary-dark: #0052cc;
  --bs-gradient-start: #0065ff;
  --bs-gradient-end: #0052cc;
  --bs-secondary: #333;
}

/* Smooth scroll globally */
html {
  scroll-behavior: smooth;
}

/* Section spacing */
section {
  padding: 4rem 0;
}

/* Hero images */
.hero-logo {
  max-width: 250px;
  width: 100%;
  height: auto;
}

/* Navbar styles */
.navbar {
  background: linear-gradient(90deg, var(--bs-gradient-start), var(--bs-gradient-end));
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Offcanvas menu link styles */
.offcanvas-body .nav-link {
  padding: 0.5rem 0;
  font-size: 1.1rem;
  color: var(--bs-secondary);
  transition: color 0.3s ease;
}
.offcanvas-body .nav-link:hover {
  color: var(--bs-primary);
}

/* Main Carousel Styles */
#mainCarousel {
  width: 100%;
}

.carousel-item-custom {
  position: relative;
  height: 85vh; /* Altura conforme especificado */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.carousel-item-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Overlay escuro e translúcido */
  z-index: 1;
}
.carousel-caption {
  z-index: 2; /* Garante que o conteúdo esteja acima do overlay */
  position: relative; /* Permite que o z-index funcione */
  top: 0; /* Alinha o caption ao topo do item */
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Call-to-Action button */
.carousel-caption .btn {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

/* Service Cards */
.card-service {
  background-color: #fff;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-service:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 101, 255, 0.3);
}
.card-service .card-title {
  color: var(--bs-primary);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .carousel-item-custom {
    height: 60vh; /* Ajuste de altura para mobile */
  }
  .carousel-caption h2 {
    font-size: 2rem;
  }
}

/* Footer Styles */
footer {
  background: #222;
  color: #ccc;
}
footer a {
  color: #ccc;
  transition: color 0.3s ease;
}
footer a:hover {
  color: var(--bs-primary);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}
.whatsapp-float:hover {
  background-color: #1ebe57;
  color: #fff;
}

/* Offcanvas Mobile Menu Tweaks */
.offcanvas.offcanvas-start {
  /* ocupa 85% da largura da viewport em mobile, até 320px no máximo */
  width: 85% !important;
  max-width: 320px;
  /* caixa branca com cantos arredondados na lateral direita */
  background-color: #fff;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

/* Linha de separação no header do offcanvas */
.offcanvas-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Links mais impactantes, com hover colorido e borda arredondada */
.offcanvas-body .nav-link {
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
}
.offcanvas-body .nav-link:hover {
  background-color: var(--bs-primary);
  color: #fff;
}

/* Ajuste de ícone e texto alinhados */
.offcanvas-body .nav-link i {
  margin-right: 0.5rem;
}
