/* Force legal footer to sit at the bottom, full width, never overlap */
.bm-legal {
  position: relative !important;
  z-index: 1;
  width: 100%;
  clear: both;
  display: block;
  margin-top: 0;
}

/* Make sure nothing else is floating where it shouldn't be */
.bm-main {
  position: relative;
  z-index:2;
  overflow: visible;
}

/* Hide Astra's default page title on homepage */
.home .entry-header,
.home .ast-archive-title,
.home .entry-title {
  display: none !important;
}

/* Make Astra header dark to match the theme */
.ast-primary-header-bar,
.site-header {
  background-color: #0a0a0a !important;
  border-bottom: 1px solid rgba(644, 241, 234, 0.18) !important;
}
.ast-primary-header-bar a,
.site-header a,
.main-header-menu a {
  color: #f4f1ea !important;
}
.ast-primary-header-bar a:hover,
.site-header a:hover,
.main-header-menu a:hover {
  color: #b8935a !important;
}
/* Services: force 5 cards in one row on desktop, collapse on mobile */
.bm-services__grid {
  grid-template-columns: repeat(5, 1fr) !important;
}

@media (max-width: 1100px) {
  .bm-services__grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 700px) {
  .bm-services__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .bm-services__grid {
    grid-template-columns: 1fr !important;
  }
}

/* Hide the empty grid cells caused by auto-fit */
.bm-service-card:empty {
  display: none;
}

/* Constrain the services section back to a centered container
   (the full-bleed CSS made it stretch edge-to-edge) */
.bm-services,
.bm-contact {
  max-width: 1240px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.25rem, 4vw, 3rem) !important;
  padding-right: clamp(1.25rem, 4vw, 3rem) !important;
  width: 100%;
  position: relative;
  left: auto;
  right: auto;
}
/* Visual styles in /assets/css/main.css */
/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.bm-wa-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #25D366;
	color: #ffffff;
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
	text-decoration: none;
}
.bm-wa-float:hover {
	transform: scale(1.08);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	background: #20bd5a;
	color: #ffffff;
}
.bm-wa-float svg {
	width: 32px;
	height: 32px;
	display: block;
}
.bm-wa-float::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #25D366;
	opacity: 0.4;
	animation: bm-wa-pulse 2.4s ease-out infinite;
	z-index: -1;
}
@keyframes bm-wa-pulse {
	0%   { transform: scale(1);   opacity: 0.4; }
	100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 600px) {
	.bm-wa-float {
		bottom: 18px;
		right: 18px;
		width: 54px;
		height: 54px;
	}
	.bm-wa-float svg { width: 28px; height: 28px; }
}
@media print { .bm-wa-float { display: none; } }

/* ============================================
   HERO BACKGROUND IMAGE
   ============================================ */
.bm-hero--has-image {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.bm-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75) 80%),
		linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.85) 100%);
	pointer-events: none;
}

/* Make sure the content sits above the overlay */
.bm-hero__inner {
	z-index: 2;
}

/* When using a real image, kill the default gradient backdrop */
.bm-hero--has-image {
	background-color: var(--bm-ink);
}