/* Main CSS file for Real Estate website */
body {
  cursor: pointer;
}

.textColor {
  color: #004369;
}

.lightText {
  color: #1B7895;
}

.bgGradient {
  background-image: linear-gradient(to right, #004369, #1B7895);
}

/* Header styles */
#top-bar {
  background-color: #262626 !important;
  height: 56px;
  z-index: 1030;
}

#main-header {
  top: 56px;
  z-index: 1020;
  transition: all 0.3s;
  background: linear-gradient(to right top, #4c75e6, #f9fafc);
}

.header-scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hover effects */
.hover-effect {
  transition: color 0.3s;
}

.hover-effect:hover {
  color: #1B7895 !important;
}

/* Background gradients */
.bg-gradient {
  background: linear-gradient(to right top, #1a365d, #333);
}

/* Custom button style with animation */
.btn-style {
  position: relative;
  overflow: hidden;
  color: #212529;
  border: 1px solid #004369;
  transition: all 0.5s ease-in-out;
  z-index: 1;
}

.btn-style::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  background-color: #000;
  transition: all 0.5s ease-in-out;
  z-index: -1;
}

.btn-style:hover::before {
  width: 100%;
}

.btn-style:hover {
  color: white;
}

/* Card styling */
.card {
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Add hover effect for sections */
section {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease-out;
}

/* Accordion custom styling */
.accordion-button:not(.collapsed) {
  color: white;
  background-color: #1a365d;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, .125);
}


/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Custom responsive fixes */
@media (max-width: 767px) {

  /* General spacing adjustments */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Header adjustments for mobile */
  #main-header {
    padding: 10px 0;
  }

  /* Hide desktop nav on mobile */
  .d-none.d-md-flex {
    display: none !important;
  }

  /* Banner section adjustments */
  #banner-section h1 {
    font-size: 2rem;
  }

  /* Improve spacing in services section */
  #services-section .card {
    margin-bottom: 20px;
  }

  /* Better spacing for reviews */
  #client-reviews .card {
    margin-bottom: 20px;
  }

  /* Adjust footer columns */
  footer .col-section {
    margin-bottom: 30px;
  }
}

/* Medium devices */
@media (min-width: 768px) and (max-width: 991px) {

  /* Add some breathing room on tablets */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  /* Adjust spacing in services section */
  #services-section .card {
    margin-bottom: 20px;
  }

  /* Better spacing for footer columns */
  footer .col-lg-5,
  footer .col-lg-2,
  footer .col-lg-3 {
    margin-bottom: 30px;
  }
}

/* Make accordion more readable on all devices */
.accordion-body {
  padding: 1rem;
  line-height: 1.6;
}

/* Ensure images don't break out of containers */
img.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Fix button styling for better touch targets */
.btn {
  padding: 0.5rem 1.25rem;
  font-weight: 500;
}
