/********** Style CSS **********/
:root {
  --primary: #eb1616;
  --secondary: #191c24;
  --light: #8a91ad;
  --dark: #000000;
  --border: rgba(255, 255, 255, 0.08);
}

body {
  background: var(--dark);
  color: var(--light);
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

@media (max-width: 991.98px) {
  .navbar {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .navbar-toggler {
    width: 52px;
    height: 52px;
    padding: 0 !important;
    margin-right: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-toggler-icon {
    width: 1.35em;
    height: 1.35em;
  }

  .barber-brand {
    max-width: calc(100% - 64px);
  }
}

/*** 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: 700;
  transition: 0.35s;
  text-transform: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.btn-outline-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--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 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Stacked barber brand */
.barber-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  min-width: 0;
}

.barber-brand-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.45rem;
}

.barber-brand-text {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1;
}

.barber-brand-main {
  color: var(--primary);
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.barber-brand-sub {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Oswald", sans-serif;
  font-size: clamp(0.68rem, 0.95vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .barber-brand {
    max-width: calc(100% - 90px);
    gap: 0.65rem;
  }

  .barber-brand-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 1.2rem;
  }

  .barber-brand-main {
    font-size: 1.5rem;
  }

  .barber-brand-sub {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
  }
}

.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 {
  margin-right: 24px;
  padding: 34px 0;
  color: var(--light);
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  outline: none;
}

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

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

.navbar-brand h1 {
  letter-spacing: 0.04em;
}

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

  .navbar .navbar-nav {
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (min-width: 992px) {
  .navbar.shadow-sm .navbar-nav .nav-link {
    padding: 20px 0;
  }

  .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 / Hero ***/
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.92),
    rgba(0, 0, 0, 0.62),
    rgba(0, 0, 0, 0.86)
  );
  z-index: 1;
}

.hero-content {
  max-width: 920px;
}

.hero-eyebrow {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-subtitle {
  max-width: 660px;
  font-size: 1.15rem;
  line-height: 1.8;
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
}

#header-carousel .carousel-item img {
  min-height: 720px;
  object-fit: cover;
}

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

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

  .carousel-caption .display-2 {
    font-size: 2.8rem;
  }

  .hero-content {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .hero-details {
    flex-direction: column;
    gap: 10px;
  }
}

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

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

/*** Content Polish ***/
.container-xxl {
  max-width: 1320px;
}

.about-image-stack img,
.price-image,
.hours-image {
  object-fit: cover;
}

.stat-card {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.service-icon-box {
  width: 60px;
  height: 60px;
}

/*** Service ***/
.service-item {
  border: 1px solid transparent;
  transition: 0.35s;
}

.service-item:hover {
  border-color: rgba(235, 22, 22, 0.32);
  transform: translateY(-4px);
}

.service-item .btn {
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 50px;
  height: 50px;
  color: var(--primary);
  background: var(--dark);
  opacity: 0;
}

.service-item:hover .btn {
  right: 0;
  bottom: 0;
  opacity: 1;
}

/*** Team ***/
.team-item .team-img::before,
.team-item .team-img::after {
  position: absolute;
  content: "";
  width: 0;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.85);
  transition: 0.5s;
}

.team-item .team-img::after {
  left: auto;
  right: 0;
}

.team-item:hover .team-img::before,
.team-item:hover .team-img::after {
  width: 50%;
}

.team-item .team-img .team-social {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
  z-index: 3;
  opacity: 0;
}

.team-item:hover .team-img .team-social {
  transition-delay: 0.3s;
  opacity: 1;
}

.team-item .team-social .btn {
  display: inline-flex;
  margin: 0 3px;
  color: var(--primary);
  background: var(--dark);
}

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

/*** Testimonial ***/
.testimonial-carousel {
  max-width: 760px;
  margin: 0 auto;
}

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

.testimonial-carousel .owl-dots .owl-dot {
  width: 60px;
  height: 60px;
  margin: 0 5px;
  padding: 10px;
  background: var(--secondary);
  transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
  width: 100px;
  height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
  opacity: 0.1;
  transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
  opacity: 1;
}

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

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

.footer .copyright {
  padding: 1.5rem;
  font-size: 15px;
  background: var(--dark);
}

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

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

@media (max-width: 767.98px) {
  .back-to-top {
    right: 24px;
    bottom: 24px;
  }

  .stat-card {
    width: 65% !important;
    padding: 2rem !important;
  }

  .service-item {
    padding: 2rem 1.25rem 2rem 0 !important;
  }
}

/* Hide scroll-to-top button for portfolio demo review */
.back-to-top {
  display: none !important;
}
