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

body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: rgba(0,0,0,0.9) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}
.navbar-brand {
  font-weight: 700;
  color: #0d6efd !important;
  letter-spacing: 0.5px;
}
.navbar-brand:hover { color: #6610f2 !important; }

.nav-link {
  color: #fff !important;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #0d6efd !important;
}
.navbar-toggler {
  border-color: #0d6efd;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ===== TOPBAR ===== */
.topbar {
  background-color: #0d6efd;
  color: white;
  font-size: 0.9rem;
  padding: 5px 10px;
  text-align: center;
}
.topbar a {
  color: #fff;
  text-decoration: none;
}
.topbar a:hover {
  text-decoration: underline;
}

/* ===== HERO ===== */
#heroCarousel img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}
.carousel-caption {
  background: rgba(0,0,0,0.55);
  padding: 25px;
  border-radius: 10px;
  max-width: 90%;
  margin: auto;
}
.carousel-caption h1 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
}
.carousel-caption p {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: #f1f1f1;
}

/* ===== SEÇÕES ===== */
section {
  padding: clamp(60px, 8vw, 100px) 20px;
}
.section-title {
  text-align: center;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 50px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ===== SOBRE ===== */
.text-justify {
  text-align: justify;
  font-weight: 400;
  max-width: 900px;
  margin: auto;
  font-size: clamp(14px, 2vw, 17px);
  color: #333;
}

/* ===== SERVIÇOS ===== */
.service-card {
  background: #fff;
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 25px;
  text-align: center;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== PORTFÓLIO ===== */
.portfolio img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.portfolio img:hover {
  transform: scale(1.03);
}

/* ===== CONTATO ===== */
.contact-form input,
.contact-form textarea {
  border-radius: 10px;
  border: 1px solid #ccc;
  transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0d6efd;
  outline: none;
}

/* ===== BOTÃO WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 100px;
  right: 25px;
  background: linear-gradient(135deg, #25d366, #20ba5b);
  color: #fff;
  border-radius: 50% 30% 50% 30%;
  font-size: 30px;
  text-align: center;
  line-height: 60px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: all 0.3s ease;
  opacity: 1;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
.whatsapp-float.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
#backToTop {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 25px;
  right: 25px;
  display: none;
  z-index: 10000;
}
#backToTop i {
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  padding: 10px;
  border-radius: 50% 20% 50% 20%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}
#backToTop:hover i {
  transform: scale(1.1);
  background: linear-gradient(135deg, #0b5ed7, #4b00e0);
}

/* ===== FOOTER ===== */
footer {
  background-color: rgba(0,0,0,0.9) !important;
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}
footer a {
  color: #fff;
  text-decoration: none;
}
footer a:hover {
  color: #0d6efd;
}

/* ===== ALERTAS ===== */
.alert {
  border-radius: 10px;
}

/* ===== RESPONSIVIDADE GLOBAL ===== */
@media (max-width: 992px) {
  .carousel-caption {
    padding: 20px;
  }
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 26px;
    line-height: 55px;
    bottom: 90px;
    right: 15px;
  }
  #backToTop {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 15px;
  }
}

@media (max-width: 576px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    line-height: 50px;
    bottom: 85px;
    right: 12px;
  }
  #backToTop {
    width: 45px;
    height: 45px;
    bottom: 18px;
    right: 12px;
  }
}
