/********** Template CSS **********/
.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
}

/*** 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 {
  transition: 0.5s;
  border-radius: 10px;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover,
.btn.btn-dark,
.btn.btn-outline-dark:hover {
  color: var(--bs-white);
  font-weight: 500;
}

.btn.btn-primary:hover {
  background: var(--bs-dark);
  border-color: var(--bs-dark);
}

.btn.btn-dark:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.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;
}

/*** Navbar ***/
.navbar.sticky-top {
  top: -100px;
  transition: 0.5s;
}

.navbar .navbar-brand img {
  max-height: 60px;
}

.navbar .navbar-nav .nav-link {
  margin: 0 12px;
  padding: 10px 0;
  color: var(--bs-secondery);
  font-size: 17px;
  font-weight: 500;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--bs-primary);
}

.navbar .navbar-nav .dropdown-item:hover,
.navbar .navbar-nav .dropdown-item.active {
  background: var(--bs-primary);
}

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

@media (max-width: 991.98px) {
  .navbar .navbar-brand img {
    max-height: 45px;
  }

  .navbar .navbar-nav {
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .navbar .nav-item .dropdown-menu {
    padding-left: 30px;
  }
}

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

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

.navbar .btn-light {
  font-weight: 500;
  color: var(--bs-secondery);
}

.navbar .btn-light:hover {
  color: var(--bs-white);
  background: var(--bs-primary);
}

/*** Hero ***/
.hero-header {
  background: url(../img/hero.jpg) top right no-repeat;
  background-size: cover;
}
.hero-header {
  background: url(../img/hero.jpg) top right no-repeat;
  background-size: cover;
  position: relative;
}

/* Add dark overlay for better text visibility */
.hero-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.hero-header .container {
  position: relative;
  z-index: 2;
}

/* On mobile, adjust image position and push text below */
@media (max-width: 991.98px) {
  .hero-header {
    background-position: 88% top;
  }

  .hero-header::before {
    background: rgba(0, 0, 0, 0.1); /* Darker overlay on mobile */
  }

  /* Push only the text column down - adjust this value */
  .hero-header .col-lg-8 {
    padding-top: 150px;
  }

  .hero-header .root {
    display: none;
  }

  /* Make text white on mobile for better contrast */
  .hero-header .text-dark {
    color: #fff !important;
  }

  .hero-header h1 {
    color: #d1b202 !important;
  }

  /* Add text shadow for better readability */
  .hero-header h1,
  .hero-header p,
  .hero-header .fs-4 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }
}

.page-header {
  background: url(../img/hero.jpg) center right no-repeat;
  background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  font-weight: 500;
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: var(--bs-secondery);
}

.page-header .breadcrumb-item a:hover,
.page-header .breadcrumb-item.active {
  color: var(--bs-primary);
}

/*** Appointment ***/
@media (min-width: 992px) {
  .container.appointment {
    max-width: 100% !important;
  }

  .container.appointment .appointment-text {
    padding-left: calc(((100% - 960px) / 2) + 0.75rem);
  }

  .container.appointment .appointment-form {
    padding-right: calc(((100% - 960px) / 2) + 0.75rem);
  }
}

@media (min-width: 1200px) {
  .container.appointment .appointment-text {
    padding-left: calc(((100% - 1140px) / 2) + 0.75rem);
  }

  .container.appointment .appointment-form {
    padding-right: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .container.appointment .appointment-text {
    padding-left: calc(((100% - 1320px) / 2) + 0.75rem);
  }

  .container.appointment .appointment-form {
    padding-right: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

.container.appointment .appointment-text {
  background: linear-gradient(rgba(205, 95, 55, 0.95), rgba(205, 95, 55, 0.95)),
    url(../img/service-4.jpg) center center no-repeat;
  background-size: cover;
}

.container.appointment .appointment-form {
  background: linear-gradient(rgba(72, 30, 11, 0.95), rgba(72, 30, 11, 0.95)),
    url(../img/service-1.jpg) center center no-repeat;
  background-size: cover;
}

.container.appointment .appointment-text .h-100,
.container.appointment .appointment-form .h-100 {
  padding: 6rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/*** Service ***/
.service-item {
  position: relative;
  overflow: hidden;
}

.service-item .service-icon {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-item .service-icon img {
  max-width: 60px;
  max-height: 60px;
}

.service-item .service-text {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.service-item .service-img {
  transition: 0.5s;
}

/*** Team ***/
.team {
  position: relative;
}

.team::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 110px;
  left: 0;
  bottom: 3rem;
  background: var(--bs-light);
  z-index: -1;
}

.team .team-item {
  position: relative;
  overflow: hidden;
}

.team .team-item img {
  position: relative;
  transform: scale(1.1);
  transition: 0.5s;
}

.team .team-item:hover img {
  margin-top: -30px;
  padding-bottom: 30px;
}

.team .team-text {
  height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team .team-text-overflow {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: -50px;
  opacity: 0;
  transition: 0.5s;
}

.team .team-item:hover .team-text-overflow {
  bottom: 0;
  opacity: 1;
}

/*** Footer ***/
.footer {
  color: rgba(256, 256, 256, 0.6);
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: rgba(256, 256, 256, 0.6);
  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;
  color: rgba(256, 256, 256, 0.6);
  margin-right: 10px;
}

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

.footer .btn.btn-square {
  color: rgba(256, 256, 256, 0.6);
  border: 1px solid rgba(256, 256, 256, 0.6);
}

.footer .btn.btn-square:hover {
  color: var(--bs-white);
  border-color: var(--bs-primary);
  background: var(--bs-primary);
}

.footer .form-control {
  color: var(--bs-light);
  border-color: rgba(256, 256, 256, 0.6);
}

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

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

.footer .copyright a:hover {
  color: #ffffff;
}

.logo {
  width: 150px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .logo {
    width: 120px;
  }
}

.text-golden {
  color: #d1b202 !important;
}

.btn-golden {
  background-color: #d1b202 !important; /* Golden color for primary text */
  color: #ffffff;
  border: none;
  border-radius: 10px;
}

.btn-golden:hover {
  color: #f7f3d6;
}

.bg-golden-light {
  background-color: #f7f3d6 !important; /* Light golden background */
}

.text-joe {
  color: #ad7526 !important;
}

.bg-joe {
  background-color: #ad7526 !important;
  color: #ffffff;
}

.btn-joe {
  background-color: #ad7526 !important;
  color: #ffffff;
  border: none;
  border-radius: 10px;
}
