/********** Template CSS **********/
:root {
  --primary: #eaa636;
  --secondary: #545454;
  --light: #fdf5eb;
  --dark: #1e1916;
}

.wow {
  visibility: hidden;
}

h4,
h5,
h6,
.h4,
.h5,
.h6 {
  font-weight: 600 !important;
}

.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.my-6 {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.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 {
  font-weight: 500;
  transition: 0.5s;
}

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

.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 .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
  padding: 35px 15px;
  color: var(--light);
  outline: none;
}

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

.navbar.fixed-top {
  transition: 0.5s;
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    background: var(--dark);
  }

  .navbar .navbar-nav .nav-link {
    padding: 10px 0;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    transition: 0.5s;
    opacity: 0;
  }

  .navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }

  .header-carousel .display-1 {
    font-size: 3.5rem;
    line-height: 1.1;
  }

  .header-carousel .owl-carousel-item img {
    object-position: center 30%;
    object-fit: cover;
    height: 750px;
    width: 100%;
    min-height: 750px;
    max-height: 80vh;
  }
  .header-carousel {
    min-height: 750px;
  }
}

@media (min-width: 900px) {
  .header-carousel .owl-carousel-item img {
    max-height: 480px;
    object-fit: cover;
  }
}

/*** Header ***/
.header-carousel .owl-carousel-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .header-carousel .owl-carousel-item {
    position: relative;
    min-height: 600px;
    height: 600px;
    overflow: hidden;
  }

  .header-carousel .owl-carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 0%;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
  }

  .header-carousel .owl-carousel-item p {
    font-size: 16px !important;
  }
}

.header-carousel .owl-nav {
  position: relative;
  width: 80px;
  height: 80px;
  margin: -40px auto 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-carousel .owl-nav::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #ffffff;
  transform: rotate(45deg);
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
  position: relative;
  font-size: 40px;
  color: var(--primary);
  transition: 0.5s;
  z-index: 1;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
  color: var(--dark);
}

.page-header {
  margin-bottom: 6rem;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

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

/*** Facts ***/
.fact-item {
  transition: 0.5s;
}

.fact-item:hover {
  margin-top: -10px;
  background: #ffffff !important;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.07);
}

/*** About ***/
.img-twice::before {
  position: absolute;
  content: "";
  width: 60%;
  height: 80%;
  top: 10%;
  left: 20%;
  background: var(--primary);
  border: 25px solid var(--light);
  border-radius: 6px;
  z-index: -1;
}

/*** Product ***/
.product-item {
  transition: 0.5s;
}

.product-item:hover {
  background: var(--primary) !important;
}

.product-item:hover * {
  color: var(--light);
}

.product-item:hover .border-primary {
  border-color: var(--light) !important;
}

.product-item .product-overlay {
  position: absolute;
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  transition: 0.5s;
}

.product-item:hover .product-overlay {
  height: 100%;
  opacity: 1;
}

/*** Team ***/
.team-card {
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.team-image {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-image img[alt="Lorna"] {
  object-position: center 30%;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(234, 166, 54, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-designation h5 {
  color: #fff;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.team-info {
  background: #fff;
  border-top: 3px solid var(--primary);
}

.team-info h5 {
  color: var(--dark);
  font-weight: 600;
  margin: 0;
}

.team-info p {
  font-family: "Sevillana", cursive, sans-serif;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item img {
  width: 60px;
  height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
  background: var(--primary) !important;
}

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

.testimonial-carousel .owl-nav {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  margin: 0 12px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  font-size: 22px;
  color: var(--light);
  background: var(--primary);
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: var(--primary);
  background: var(--dark);
}

/*** Footer ***/
.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: var(--light);
  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: var(--light);
  margin-right: 10px;
}

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

.copyright {
  background: #111111;
}

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

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

@media (max-width: 768px) {
  .team-image {
    height: 220px;
  }

  .team-info {
    padding: 1rem !important;
  }

  .team-info h5 {
    font-size: 1rem;
  }

  .team-designation h5 {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .team-image {
    height: 200px;
  }
}

.footer-gallery-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 0.5rem;
  min-height: 80px;
  max-height: 120px;
}

/* Fade in/out for hero carousel images */
.header-carousel .owl-carousel-item img {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.header-carousel .owl-carousel-item.active img,
.header-carousel .owl-carousel-item:first-child img {
  opacity: 1;
}

/* Lower hero images on desktop only */
@media (max-width: 991.98px) {
  .header-carousel .owl-carousel-item img {
    object-position: center center;
    height: auto;
  }
}

/* Shorten product cards on mobile */
@media (max-width: 768px) {
  .product-item .position-relative {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    overflow: hidden;
  }
  .product-item .position-relative img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  .product-item .text-center.p-4 {
    padding: 0.75rem !important;
  }
  .product-item {
    min-height: 320px;
    max-height: 340px;
  }
}

.product-item .position-relative {
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  overflow: hidden;
}
.product-item .position-relative img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.product-item {
  min-height: 320px;
  max-height: 340px;
}
