/********** Template CSS **********/
:root {
  /* New Color Scheme */
  --van-dyke: #484041;
  --delft-blue: #434371;
  --cambridge-blue: #79aea3;
  --light-green: #70ee9c;
  --green-yellow: #b5f44a;

  /* Override Bootstrap variables */
  --primary: var(--cambridge-blue);
  --secondary: var(--delft-blue);
  --success: var(--light-green);
  --dark: var(--van-dyke);
  --light: #f8f9fa;

  /* Bootstrap RGB Variables */
  --bs-primary: var(--cambridge-blue);
  --bs-primary-rgb: 121, 174, 163;
  --bs-secondary: var(--delft-blue);
  --bs-secondary-rgb: 67, 67, 113;
  --bs-success: var(--light-green);
  --bs-success-rgb: 112, 238, 156;
  --bs-dark: var(--van-dyke);
}

/* Global Styles */
body {
  font-family: "Ubuntu", sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
}

.fw-medium {
  font-weight: 600 !important;
}

/* Global spacing adjustments */
.container-xxl {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.my-5 {
  margin-top: 3.5rem !important;
  margin-bottom: 3.5rem !important;
}

/* Text highlight colors */
.text-primary {
  color: var(--cambridge-blue) !important;
}

.text-success {
  color: var(--light-green) !important;
}

/* Background colors */
.bg-primary {
  background-color: var(--cambridge-blue) !important;
}

.bg-secondary {
  background-color: var(--delft-blue) !important;
}

.bg-dark {
  background-color: var(--van-dyke) !important;
}

.bg-light {
  background-color: #f8f9fa !important;
}

/* Logo text */
.logo-text {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  margin: 0;
  font-size: 1.5rem;
  background: linear-gradient(45deg, var(--cambridge-blue), var(--delft-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
}

.logo-text::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 30%;
  height: 3px;
  background: var(--green-yellow);
  opacity: 0.7;
}

/* Enhanced section headers */
h6.text-primary.text-uppercase {
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--cambridge-blue) !important;
  position: relative;
  display: inline-block;
}

h6.text-primary.text-uppercase::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--green-yellow);
  border-radius: 2px;
}

/* Service area styles */
.service-area-list {
  column-count: 3;
  column-gap: 2rem;
}

@media (max-width: 768px) {
  .service-area-list {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .service-area-list {
    column-count: 1;
  }
}

/*** Back to Top Button ***/
.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
  background-color: var(--cambridge-blue);
  border-color: var(--cambridge-blue);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  transition: all 0.4s;
}

.back-to-top:hover {
  background-color: var(--delft-blue);
  border-color: var(--delft-blue);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.4s;
  border-radius: 4px;
}

.btn.btn-primary,
.btn.btn-secondary {
  color: #ffffff;
}

.btn-primary {
  background-color: var(--cambridge-blue);
  border-color: var(--cambridge-blue);
}

.btn-primary:hover {
  background-color: var(--delft-blue);
  border-color: var(--delft-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 50%;
}

/*** Navbar ***/
.navbar {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 25px 0;
  color: var(--dark);
  font-size: 15px;
  text-transform: uppercase;
  outline: none;
  transition: all 0.3s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--cambridge-blue);
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar-light .navbar-nav {
    border-top: 1px solid #eeeeee;
  }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
  height: 75px;
}

.navbar-light.sticky-top {
  top: -100px;
  transition: 0.5s;
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(67, 67, 113, 0.7);
  z-index: 1;
  border-radius: 8px;
  padding: 20px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--cambridge-blue);
  border-radius: 50%;
  background-size: 50%;
  transition: all 0.3s;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: var(--delft-blue);
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 450px;
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Rounded images */
.img-fluid {
  border-radius: 8px;
}

.page-header {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-header-inner {
  background: rgba(0, 0, 0, 0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

/*** Facts ***/
.fact {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s;
  border-top: 4px solid var(--cambridge-blue);
  background: linear-gradient(rgba(72, 64, 65, 0.8), rgba(67, 67, 113, 0.8)),
    url(../img/carousel-bg-1.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.fact:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/*** Service ***/
.service .nav .nav-link {
  background: var(--light);
  transition: all 0.4s;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 3px solid transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.service .nav .nav-link:hover {
  border-left: 3px solid var(--green-yellow);
  transform: translateX(5px);
}

.service .nav .nav-link.active {
  background: var(--cambridge-blue);
  box-shadow: 0 5px 15px rgba(121, 174, 163, 0.3);
}

.service .nav .nav-link i {
  color: var(--cambridge-blue);
  transition: all 0.3s ease;
}

.service .nav .nav-link:hover i {
  transform: scale(1.1);
}

.service .nav .nav-link.active i {
  color: white;
}

/* Service tabs */
.tab-content {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Enhanced Service Items */
.service-item {
  position: relative;
  z-index: 1;
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.5s;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

.service-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(
    135deg,
    rgba(121, 174, 163, 0.05),
    rgba(112, 238, 156, 0.1)
  );
  transition: all 0.5s ease;
  z-index: -1;
  border-radius: 12px;
}

.service-item:hover::before {
  height: 100%;
}

.service-item .service-icon {
  width: 75px;
  height: 75px;
  margin-top: -37px;
  margin-bottom: 20px;
  background: var(--cambridge-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(121, 174, 163, 0.3);
  transition: all 0.5s;
  position: relative;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) !important;
  border: 2px solid white;
}

.service-item:hover .service-icon {
  transform: translateY(-5px) rotate(5deg) !important;
  box-shadow: 0 10px 25px rgba(121, 174, 163, 0.4) !important;
  background: var(--delft-blue) !important;
}

.service-item .service-icon i {
  color: white !important;
  transition: all 0.3s;
  font-size: 2.2rem;
}

.service-item:hover .service-icon i {
  transform: scale(1.1);
}

.service-item .position-relative {
  background: white;
  padding: 30px;
  margin-top: -20px;
  border-radius: 12px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border-top: 3px solid transparent;
}

.service-item:hover .position-relative {
  border-top: 3px solid var(--green-yellow);
  transform: translateY(3px);
}

.service-item .position-relative p {
  flex-grow: 1;
  margin-bottom: 15px;
}

.service-item h4 {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  padding-bottom: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.service-item:hover h4 {
  color: var(--cambridge-blue);
}

.service-item h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--green-yellow);
  transition: all 0.3s ease;
}

.service-item:hover h4::after {
  width: 60px;
  background: var(--cambridge-blue);
}

.service-item a.small {
  margin-top: auto;
  padding: 8px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  transition: all 0.3s;
  color: var(--cambridge-blue);
}

.service-item a.small:hover {
  color: var(--delft-blue);
  transform: translateX(5px);
}

.service-item a.small i {
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.service-item a.small:hover i {
  transform: translateX(5px);
}

.service-item .img-fluid {
  filter: brightness(0.95);
  transition: all 0.7s ease;
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.service-item:hover .img-fluid {
  filter: brightness(1.05);
  transform: scale(1.03);
}

/* Fix for Detailed Services section icons to match color scheme */
.service-icon i.fa-spray-can,
.service-icon i.fa-map,
.service-icon i.fa-couch,
.service-icon i.fa-paw,
.service-icon i.fa-shield-alt,
.service-icon i.fa-building,
.service-icon i.fa-broom {
  color: #ffffff !important; /* Make sure icons are white */
}

/* Set the service icon background to cambridge-blue */
.service-icon {
  background: var(--cambridge-blue) !important;
  box-shadow: 0 5px 15px rgba(121, 174, 163, 0.3);
}

/* Ensure icon containers have consistent styling */
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Additional hover effects for service items */
.service-item:hover .position-relative {
  border-top: 3px solid var(--green-yellow);
}

/* Ensure consistent height for all cards in a row */
@media (min-width: 992px) {
  .container-xxl .row .col-lg-4 {
    display: flex;
  }

  .container-xxl .row .service-item {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .container-xxl .service-item .img-fluid {
    height: 220px; /* Fixed height for images */
    object-fit: cover;
  }

  .container-xxl .service-item .position-relative {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .container-xxl .service-item .position-relative p {
    flex: 1;
  }
}

/* Color accents for checkmarks and icons */
.fa-check.text-success {
  color: var(--green-yellow) !important;
}

/* About section badge */
.position-absolute.top-0.end-0.mt-n4.me-n4.py-4.px-5 {
  background: var(--delft-blue) !important;
}

/*** Process Section ***/
.process-section {
  background: linear-gradient(
    135deg,
    rgba(67, 67, 113, 0.05),
    rgba(121, 174, 163, 0.15)
  ) !important;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(121, 174, 163, 0.2);
  border-bottom: 1px solid rgba(121, 174, 163, 0.2);
}

.process-section::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(181, 244, 74, 0.15),
    transparent 70%
  );
  z-index: 0;
}

.process-section::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(121, 174, 163, 0.2),
    transparent 70%
  );
  z-index: 0;
}

.process-section .bg-white.rounded {
  border-top: 3px solid var(--cambridge-blue);
  transition: all 0.4s;
  position: relative;
  z-index: 1;
  border-radius: 12px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.process-section .bg-white.rounded:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.process-section .bg-primary.rounded-circle {
  box-shadow: 0 0 20px rgba(121, 174, 163, 0.4);
  transition: all 0.3s;
  background-color: var(--cambridge-blue) !important;
}

.process-section .bg-white.rounded:hover .bg-primary.rounded-circle {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--delft-blue) !important;
}

.process-section .bg-white.rounded h4 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.process-section .bg-white.rounded h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--green-yellow);
  transition: all 0.3s ease;
}

.process-section .bg-white.rounded:hover h4::after {
  width: 60px;
  background: var(--cambridge-blue);
}

.process-section .bg-white.rounded:hover h4 {
  color: var(--cambridge-blue);
}

/*** Booking ***/
.booking {
  background: linear-gradient(rgba(67, 67, 113, 0.7), rgba(72, 64, 65, 0.7)),
    url(../img/carousel-bg-2.jpg) center center no-repeat;
  background-size: cover;
  border-radius: 12px;
  overflow: hidden;
}

.bootstrap-datetimepicker-widget.bottom {
  top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
  border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
  font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
  padding: 10px;
  border-radius: 8px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
  background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
  border-bottom-color: var(--primary);
}

/*** Team ***/
.team-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.team-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-item .team-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  transform: scale(0);
  transition: 0.5s;
}

.team-item:hover .team-overlay {
  transform: scale(1);
}

.team-item .team-overlay .btn {
  color: var(--primary);
  background: #ffffff;
  border-radius: 30px;
}

.team-item .team-overlay .btn:hover {
  color: #ffffff;
  background: var(--secondary);
}

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-text {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
  background: var(--primary) !important;
  box-shadow: 0 10px 30px rgba(121, 174, 163, 0.2);
}

.testimonial-carousel .owl-item.center .testimonial-text * {
  color: #ffffff !important;
  transition: 0.5s;
}

.testimonial-carousel .owl-dots {
  margin-top: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 15px;
  height: 15px;
  border: 1px solid #cccccc;
  border-radius: 50%;
  transition: 0.5s;
}

.testimonial-carousel .owl-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* Contact items enhancement */
#contact .bg-light {
  border-radius: 12px;
  border-top: 3px solid var(--cambridge-blue);
  transition: all 0.3s ease;
}

#contact .bg-light:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Accordion styling */
.accordion-item {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.accordion-button:not(.collapsed) {
  background-color: var(--cambridge-blue);
  color: white;
}

.accordion-button:focus {
  border-color: var(--cambridge-blue);
  box-shadow: 0 0 0 0.25rem rgba(121, 174, 163, 0.25);
}

/*** Footer ***/
.footer {
  background: linear-gradient(
    135deg,
    var(--van-dyke),
    var(--delft-blue)
  ) !important;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(121, 174, 163, 0.1),
    transparent 70%
  );
  z-index: 0;
}

.footer .container,
.footer .copyright {
  position: relative;
  z-index: 1;
}

.footer .btn.btn-social {
  margin-right: 5px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 40px;
  transition: 0.3s;
}

.footer .btn.btn-social:hover {
  color: var(--light-green);
  border-color: var(--cambridge-blue);
  transform: translateY(-3px);
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  text-align: left;
  color: #ffffff;
  font-size: 16px;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
  color: var(--light-green);
}

.footer .btn.btn-link:hover {
  letter-spacing: 1px;
  box-shadow: none;
  color: var(--light-green);
}

.footer a.border-bottom:hover {
  border-color: var(--cambridge-blue) !important;
  color: var(--light-green) !important;
}

.footer .copyright {
  padding: 25px 0;
  font-size: 15px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: var(--light);
}

.footer .footer-menu a {
  margin-right: 15px;
  padding-right: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.footer .footer-menu a:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--cambridge-blue);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--delft-blue);
}

/* Enhanced Service Cards - Detailed Services Section */
.container-xxl .service-item {
  margin-bottom: 30px;
}
