/* ============================================================
   B•Chemistry — Home Page Styles
   ============================================================ */

/* ============================================================
   LOTTIE INTRO LOADER
   ============================================================ */
@keyframes lottie-zoom-out {
  0%   { transform: scale(1);    opacity: 1; }
  70%  { transform: scale(1.8);  opacity: 1; }
  100% { transform: scale(3.5);  opacity: 0; }
}

#lottie-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#lottie-loader.lottie-loader--out {
  animation: lottie-zoom-out 1.2s ease-in forwards;
  pointer-events: none;
}

#lottie-anim {
  width: 100%;
  height: 100%;
}

/* ============================================================
   NAVBAR — transparent variant
   ============================================================ */
.navbar--transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  border-bottom: none;
  z-index: 10;
}

/* White logo on dark bg */
.navbar--transparent .logo-text {
  color: #ffffff;
}

/* White nav links */
.navbar--transparent .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar--transparent .nav-link:hover {
  color: #ffffff;
}

.navbar--transparent .nav-link.active::after {
  background-color: #ffffff;
}

/* Outlined white button */
.btn-book--outline {
  background-color: #ffffff;
  border: 1.5px solid #ffffff;
  color: #1a1a1a;
  border-radius: 6px;
  font-size: clamp(0.75rem, 0.85vw, 1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
}

/* ============================================================
   HERO WRAP — full viewport with background image
   ============================================================ */
.hero-wrap {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-image: url('../images/home_page_web.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Full-cover background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Fallback image — sits above video, hidden once video starts playing */
.hero-fallback-img {
  z-index: 1;
  transition: opacity 0.4s ease;
}

/* Video fades in when JS sets opacity:1 */
#aboutVideo {
  transition: opacity 0.4s ease;
}

/* Sound toggle button */
.sound-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  color: #ffffff;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sound-toggle:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.7);
}

.sound-toggle svg {
  width: 12px;
  height: 12px;
}

/* Dark overlay for readability */
.hero-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 2, 2, 0.55);
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   HERO CONTENT — centered vertically + horizontally
   ============================================================ */
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 135px 40px 80px;
  gap: 40px;
}

.hero-quote {
  font-family: 'Riviera Nights Trial', 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.9;
  color: #ffffff;
  font-style: normal;
  text-transform: uppercase;
  max-width: 60vw;
}

/* Outlined white call button */
.btn-hero-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  text-decoration: none;
  font-family: 'Riviera Nights Trial', 'Inter', sans-serif;
  font-size: clamp(0.82rem, 1vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 13px 28px;
  border-radius: 6px;
  white-space: nowrap;

}

.btn-hero-call:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-content {
    padding: 100px 32px 60px;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 90px 20px 50px;
    gap: 32px;
  }

  .hero-quote {
    letter-spacing: 0.08em;
    line-height: 1.8;
  }
}
