:root {
  --bs-primary: #4CAF50;
  /* replace with your custom color */
}

.bg-container {
  background-image: url('../images/yellow_flower_field.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 50vh;
  /* Responsive height: 50% of viewport */
  max-height: 500px;
  /* Max height */
  min-height: 300px;
  /* Ensures decent size on small screens */
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  /* For overlay layering */
  overflow: hidden;
  /* Prevents overlay spill */
  /* Optional: add a subtle box-shadow for depth */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.a {
  text-decoration: none;
}

/* Add a dark overlay layer to improve text readability */
.bg-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  /* Adjust opacity for darkness */
  border-radius: 12px;
  /* Match container's rounded corners */
  z-index: 0;
}

/* Ensure content sits above the overlay */
.bg-container>* {
  position: relative;
  z-index: 1;
  color: white;
  /* Make sure text is visible */
}

.icon-52 {
  font-size: 52px;
  line-height: 1;
}

/* .col:hover {
  transform: scale(1.1);
} */

/* Make profile photo responsive and circular */
.selfie {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover zoom */
.selfie:hover {
  transform: scale(1.05);
}

/* Colored glow and soft shadow */
.shadowed-photo {
  padding: 5px;
  background: radial-gradient(circle at center, rgba(123, 104, 238, 0.25), rgba(123, 104, 238, 0));
  box-shadow: 0 0.5rem 1rem rgba(123, 104, 238, 0.4);
}

.c-services {
  border-radius: 12px;
}

/* Style service tags */
.service-tag {
  display: inline-block;
  margin: 0.25rem;
  padding: 0.35rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

.service-tag:hover {
  background-color: rgba(255, 255, 255, 0.3);
  cursor: default;
}

/* Map styling */
.map-embed {
  border: 0;
  min-height: 400px;
  /* original desktop size */
}

/* Card image */
.card-image {
  height: 260px;
  /* original desktop size */
  object-fit: cover;
  border-radius: 0.75rem 0.75rem 0 0;
  /* only top corners rounded */
  transition: transform 0.3s ease, border-radius 0.3s ease;
}

/* Hover effect for the card */
.card-hover {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-hover:hover {
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
  transform: translateY(-5px);
}

.card-hover:hover .card-image {
  transform: scale(1.05);
  border-radius: 0.75rem;
  /* round all corners on hover */
}

/* Responsive adjustments for small screens */
@media (max-width: 767px) {
  .map-embed {
    min-height: 300px;
    /* smaller on mobile */
  }

  .card-image {
    height: 200px;
    /* proportionally smaller on mobile */
  }
}

#backToTop {
  position: fixed;
  bottom: -100px;
  /* start off-screen below */
  right: 30px;
  padding: .5rem 1.5rem;
  font-size: 1rem;
  display: block;
  opacity: 0;
  transition: opacity 0.4s, bottom 0.4s, transform 0.2s, box-shadow 0.2s;
  z-index: 1000;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Show with bounce */
#backToTop.show {
  opacity: 1;
  bottom: 30px;
  animation: bounceUp 0.6s ease-out;
}

/* Hover effect: scale up and shadow */
#backToTop:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Bounce keyframes */
@keyframes bounceUp {
  0% {
    transform: translateY(100px);
  }

  60% {
    transform: translateY(-10px);
  }

  80% {
    transform: translateY(5px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Scale down on mobile */
@media (max-width: 576px) {
  #backToTop {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    bottom: -80px;
    right: 15px;
  }

  #backToTop.show {
    bottom: 20px;
  }

  #backToTop:hover {
    transform: scale(1.05);
  }
}

.spwidget-button-wrapper {
  text-align: center
}

.spwidget-button {
  display: inline-block;
  padding: 6px 12px;
  color: #1371C8;
  background: #fff;
  border: 1px solid #1371C8;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none
}

.spwidget-button:hover {
  background: #fff;
  color: #0F5AA0
}

.spwidget-button:active {
  color: rgba(255, 255, 255, .75) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15) inset
}

#scrollButton {
  background: linear-gradient(145deg, #006666, #004d4d);
  /* deep teal gradient */
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  /* strong shadow */
  border: none;
  transition: all 0.3s ease-in-out;
  border-radius: 6px;
}

#scrollButton:hover {
  background: linear-gradient(145deg, #008080, #005959);
  /* slightly lighter teal on hover */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.form-disclaimer {
  font-size: 0.85rem;
  background-color: #f8d7da;
  /* light red background */
  color: #842029;
  /* dark red text */
  border: 1px solid #f5c2c7;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
}

/* On small screens, make it lighter and smaller */
@media (max-width: 576px) {
  .form-disclaimer {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: #fff3cd;
    /* soft yellow instead of red */
    color: #664d03;
    border: 1px solid #ffeeba;
  }
}

    /* Accordion buttons */
    .faq-btn {
        background-color: #e2a300; /* Primary gold */
        color: #fff4e5; /* Secondary text */
        font-weight: 600;
        border: 2px solid #e2a300;
        border-radius: 0.25rem;
        transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
    }

    /* Expanded state */
    .faq-btn:not(.collapsed) {
        background-color: #fff4e5; /* Secondary background */
        color: #e2a300; /* Primary text */
        border: 2px solid #e2a300;
    }

    /* Chevron icons */
    .faq-btn::after {
        transition: transform 0.3s, color 0.3s;
        filter: invert(100%); /* default white */
    }

    .faq-btn:not(.collapsed)::after {
        filter: invert(0%); /* gold when expanded */
    }

    /* Hover & focus effects */
    .faq-btn:hover, 
    .faq-btn:focus {
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        background-color: #ffd966; /* slightly lighter gold */
        color: #fff4e5;
    }

    .faq-btn:not(.collapsed):hover,
    .faq-btn:not(.collapsed):focus {
        background-color: #ffe8b3; /* lighter secondary background */
        color: #e2a300;
    }

    /* Accordion body */
    .accordion-body {
        background-color: #fff4e5; /* Light secondary background */
        color: #333;
        border-left: 2px solid #e2a300;
        border-right: 2px solid #e2a300;
        border-bottom: 2px solid #e2a300;
        border-radius: 0 0 0.25rem 0.25rem;
        transition: background-color 0.3s;
    }