/* Default Desktop Images */
.slide-1 {
  background-image: url("img/slides/1.jpg");
  background-size: cover;
  background-position: center;
  background-color: #35383d;
}

.slide-2 {
  background-image: url("img/slides/4.jpg");
  background-size: cover;
  background-position: center;
  background-color: #35383d;
}

/* Mobile View - Swap Background Images */
@media (max-width: 767px) {
  .slide-1 {
    background-image: url("/img/slides/BUILDING 1-mobile-view.jpg"); /* Add a mobile-specific image */
  }

  .slide-2 {
    background-image: url("img/slides/4-mobile.jpg"); /* Add a mobile-specific image */
  }

  #home {
    height: 70vh !important; /* Reduce height on mobile */
  }

  .owl-item {
    min-height: 70vh; /* Ensure minimum height */
  }

  /* Adjust text sizes for mobile */
  .text-12 {
    font-size: 2.5rem !important; /* Reduce large heading */
  }

  .text-5 {
    font-size: 1.5rem !important;
  }

  .text-4 {
    font-size: 1rem !important;
  }

  .container {
    padding: 15px !important; /* Adjust padding */
  }

  /* Center content better on mobile */
  .d-flex.flex-column {
    padding: 0 15px;
  }
}

/* Custom Modal Styling */
.modal-sm .modal-content {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.modal-dialog {
  margin: 0;
  max-width: 640px; /* Desktop width remains 640px */
}

#aboutUsModal .modal-body {
  padding: 1rem;
}

#aboutUsModal .form-control {
  font-size: 0.9rem;
  padding: 0.5rem;
}

#aboutUsModal .btn {
  font-size: 0.9rem;
  padding: 0.5rem;
}

/* Custom Backdrop Styling */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-backdrop.show {
  opacity: 1;
}
/* Ensure modal doesn’t block too much content */
@media (max-width: 767px) {
  #aboutUsModal .modal-dialog {
    max-width: 400px;
    width: 90%; /* Slightly narrower to avoid covering too much */
    margin: 0 auto;
    bottom: 10px;
    left: auto;
    right: auto;
  }
}

@media (min-width: 768px) {
  #aboutUsModal .modal-dialog {
    max-width: 640px;
    margin: 0 20px 20px auto; /* Align to bottom-right on desktop */
    bottom: 20px;
    right: 20px;
    left: auto;
  }
}

/* Floating contact buttons - left side bottom */
.floating-contact {
  position: fixed;
  left: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999; /* Make sure it sits above other elements */
}
/* legacy alias: allow .floating-contact-btn reference, but prefer Bootstrap .btn */
.floating-contact-btn,
.floating-contact .btn,
.floating-contact .btn:hover,
.floating-contact .btn:focus,
.floating-contact .btn:active,
.floating-contact .btn:visited {
  text-decoration: none !important; /* Prevent underline on hover/focus/active */
  border: none;
}
.floating-contact .btn:focus {
  outline: none; /* remove default outline */
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.18), 0 6px 14px rgba(0, 0, 0, 0.15); /* visible focus ring */
}
.floating-contact .btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.28), 0 6px 14px rgba(0, 0, 0, 0.15);
}
.floating-contact .btn {
  width: 52px; /* ensure squares for round shape */
  height: 52px;
  padding: 0; /* remove default padding so icons stay centered */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
/* Slight translate on hover to match previous micro-animation */
.floating-contact .btn:hover {
  transform: translateY(-3px);
}
@media (max-width: 520px) {
  .floating-contact {
    left: 10px;
    bottom: 10px;
    gap: 8px;
  }
  .floating-contact .btn {
    width: 46px;
    height: 46px;
  }
}
/* Remove old pseudo-label hover tips (Bootstrap tooltips can be used instead if desired) */

/* Reduce size on very small phones and add spacing */
@media (max-width: 520px) {
  .floating-contact {
    left: 10px;
    bottom: 10px;
    gap: 10px;
  }
  .floating-contact .btn {
    width: 44px;
    height: 44px;
  }
}

/* Hide on screens where the floating buttons may obstruct content (optional) */
@media (min-width: 1600px) {
  .floating-contact {
    left: 30px;
    bottom: 30px;
  }
}

/* Ensure the floating button icons are clearly visible in dark mode */
@media (prefers-color-scheme: dark) {
  .floating-contact .btn {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  }
}
