/* Page & UI animations */
.bh-page-enter {
  animation: bhFadeUp .55s ease both;
}

@keyframes bhFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.bh-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.bh-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.bh-reveal-delay-1 { transition-delay: .08s; }
.bh-reveal-delay-2 { transition-delay: .16s; }
.bh-reveal-delay-3 { transition-delay: .24s; }

.bh-card-media,
.bh-post,
.bh-price,
.bh-service-img,
.bh-panel {
  transition: transform .28s ease, box-shadow .28s ease;
}

.bh-nav a,
.bh-btn {
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}

.bh-btn:active { transform: translateY(1px) scale(.98); }

/* Toast */
.bh-toast-wrap {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-width: min(380px, calc(100vw - 2rem));
  pointer-events: none;
}

.bh-toast {
  pointer-events: auto;
  background: #062a30;
  color: #fff;
  padding: .85rem 1rem;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(6,42,48,.28);
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  animation: bhToastIn .35s ease both;
  border-left: 4px solid #e85d04;
}

.bh-toast.success { border-left-color: #2a9d8f; }
.bh-toast.error { border-left-color: #e63946; }
.bh-toast .bh-toast-msg { flex: 1; font-size: .92rem; line-height: 1.4; }
.bh-toast button {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

@keyframes bhToastIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}

/* Loading overlay + button state */
.bh-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #e85d04, #2a9d8f);
  z-index: 5000;
  transition: width .25s ease;
  opacity: 0;
}
.bh-loading-bar.is-active {
  opacity: 1;
  width: 70%;
  animation: bhLoadPulse 1.2s ease infinite;
}
.bh-loading-bar.is-done {
  width: 100%;
  opacity: 0;
  transition: width .2s ease, opacity .4s ease .15s;
}

@keyframes bhLoadPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}

.bh-btn.is-loading,
.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: .75;
}

.bh-btn.is-loading::after,
.btn.is-loading::after {
  content: "";
  width: .85rem;
  height: .85rem;
  margin-left: .5rem;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -2px;
  animation: bhSpin .7s linear infinite;
}

@keyframes bhSpin {
  to { transform: rotate(360deg); }
}

/* Page transition veil */
.bh-page-veil {
  position: fixed;
  inset: 0;
  background: rgba(243, 239, 230, .55);
  z-index: 3500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.bh-page-veil.is-active {
  opacity: 1;
  pointer-events: auto;
}
