/* Variables */
:root {
  --text-forest: #2e7d32;
  --text-forest-hover: #1b5e20;
  --bg-off-white: #f8f9fa;
  --dark-heading: #1a1a1a;
  --body-text: #4a4a4a;
  --border-light: #e0e0e0;
  --light-gray: #d1d1d1;
}

/* Global Styles */
body {
  font-family: "Inter", sans-serif;
  color: var(--body-text);
  scroll-behavior: smooth;
}

.fw-black {
  font-weight: 900;
}
.text-forest {
  color: var(--text-forest);
}
.bg-off-white {
  background-color: var(--bg-off-white);
}
.bg-dark-heading {
  background-color: var(--dark-heading);
}
.font-display {
  font-family: "Playfair Display", serif;
}

.section-padding {
  padding: 100px 0;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.85); /* Sempre legível */
  backdrop-filter: blur(10px);
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-heading) !important;
  margin: 0 10px;
}

.lang-switcher button {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 500;
  color: #888;
  padding: 0 5px;
}

.lang-switcher button.active {
  color: var(--dark-heading);
  font-weight: 700;
}

/* ==========================================
   BULLETPROOF HERO SECTION
   ========================================== */

.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px; /* Ensures content isn't hidden under the fixed navbar */
  padding-bottom: 80px;

  /* Background Image setup */
  background-image: url("../uploads/banner.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #1a1a1a; /* Fallback color */
}

/* Solid transparent overlay (No gradients to prevent layout breaks) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* 70% opacity black */
  z-index: 1;
}

/* Content layer stays above the overlay */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Ensure Navbar is solid white so it doesn't get lost on the dark banner */
#mainNavbar {
  background-color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.check-badge {
  width: 24px;
  height: 24px;
  background-color: var(--text-forest);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Form Card */
.form-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.form-control,
.form-select {
  border: 1px solid var(--border-light);
  padding: 12px 15px;
  font-size: 14px;
  border-radius: 10px;
}

.btn-forest {
  background-color: var(--text-forest);
  color: white;
  font-weight: 700;
  border: none;
  transition: 0.3s;
}

.btn-forest:hover {
  background-color: var(--text-forest-hover);
  transform: translateY(-2px);
  color: white;
}

.btn-dark-premium {
  background-color: var(--dark-heading);
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 600;
}

/* Services */
.service-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 15px;
  padding: 30px;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--text-forest);
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.icon-box {
  width: 50px;
  height: 50px;
  background: #f1f8f1;
  color: var(--text-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 24px;
}

.badge-dust {
  background: rgba(46, 125, 50, 0.1);
  color: var(--text-forest);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Floating Actions */
.floating-stack {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.float-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
}

.float-whatsapp {
  background-color: #25d366;
}
.float-call {
  background-color: var(--dark-heading);
}

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

@keyframes call-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 26, 26, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(26, 26, 26, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(26, 26, 26, 0);
  }
}

/* Gallery */
.gallery-item img {
  transition: transform 0.4s ease;
  cursor: pointer;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 991px) {
  .navbar {
    background: white;
    padding: 15px 0;
  }
  .hero-section {
    text-align: center;
  }
}

/* Gallery & Lightbox */
.gallery-item {
  transition: all 0.4s ease;
}

.gallery-item-caption {
  display: block;
  text-align: center;
  padding: 0;
  color: var(--body-text);
  font-size: 1rem;
  font-weight: bold;
}

.gallery-item img {
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.75); /* Dark transparent overlay */
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Modal Adjustments */
#galleryModal .modal-content {
  background: transparent;
}
#galleryModal .btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 10px;
}

/* Modern 1:1 Gallery Setup */
.gallery-ratio-1x1 {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card {
  cursor: pointer;
  transition: transform 0.3s ease;
  background: transparent;
}

.gallery-card:hover {
  transform: translateY(-5px);
}

.gallery-card:hover .gallery-ratio-1x1 {
  transform: scale(1.05);
}

.gallery-image-wrapper {
  overflow: hidden;
  border-radius: 1rem; /* Bootstrap rounded-4 */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
}

.gallery-caption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-heading);
  text-align: center;
  margin: 0;
  padding: 0 10px;
}
