/* ================================
   Bannock Express Loader (SMOKE.JS)
================================ */


/* Fullscreen overlay */
#be-loader{
  position: fixed;
  inset: 0;
  background: #0b0b0b;
  z-index: 999999;
  overflow: hidden;

  display: grid;
  place-items: center;

  opacity: 1;
  transition: opacity .6s ease;
}

/* Fade exit */
#be-loader.be-exit{
  opacity: 0;
  pointer-events: none;
}

/* Prevent page scrolling during loader */
body.loader-active{
  overflow: hidden;
}

/* Smoke canvas fills the overlay */
#be-smoke{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  pointer-events: none;
  z-index: 1;

  opacity: 0.90;
}

/* Center column: burger + text */
#be-loader .be-loader-inner{
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 420px;        /* prevents mobile overflow */
  padding: 0 16px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 12px;
}

/* Stage (controls burger size) */
#be-loader .be-stack{
  position: relative;

  /* safe responsive size */
  width: min(55vw, 360px);
  height: min(55vw, 360px);
}

/* Each layer image */
#be-loader img.be-layer{
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;

  display: none;
  opacity: 0;
  transform: translateY(18px);

  pointer-events: none;
  will-change: transform, opacity;
}

/* Loading text */
.be-loading-text{
  margin-top: -10px;

  font-size: clamp(16px, 4vw, 20px);

  letter-spacing: .05em;
  text-transform: capitalize;
  font-weight:500;
  color: #f5e7cc;

  text-align:center;

  text-shadow:
    0 2px 10px rgba(0,0,0,.6),
    0 0 28px rgba(0,0,0,.35);
}

/* Progress bar container */
.be-progress{

width: clamp(160px, 60vw, 310px);
height:7px;

background:rgba(255,255,255,.15);

margin-top:14px;

overflow:hidden;
}

/* Progress fill */
.be-progress-bar{

width:0%;
height:100%;

background:linear-gradient(
90deg,
#c7962d 0%,
#f1d37a 50%,
#c7962d 100%
);

transition:width .35s ease;

background-size:200% 100%;
animation:progressShimmer 2s linear infinite;

}

@keyframes progressShimmer{

0%{
background-position:200% 0;
}

100%{
background-position:-200% 0;
}

}



.be-stack{
filter: drop-shadow(0 8px 20px rgba(255,180,60,.18));
}

.be-stack::after{
content:"";
position:absolute;
bottom:-10px;
left:50%;
transform:translateX(-50%);
width:160px;
height:30px;
background:radial-gradient(rgba(255,190,90,.35), transparent);
filter:blur(12px);
opacity:.35;
}

/* Burger landing bounce */
.be-bounce {
  animation: beBurgerBounce 420ms cubic-bezier(.2,.8,.2,1);
}

@keyframes beBurgerBounce {

  0% {
    transform: translateY(-18px);
  }

  60% {
    transform: translateY(4px);
  }

  100% {
    transform: translateY(0);
  }

}

/* =========================================
   MOBILE FIXES ONLY
========================================= */

html,
body {
  overflow-x: hidden;
}

/* ---------- HEADER / HERO MOBILE ---------- */
@media (max-width: 768px) {

  .bx-topbar {
    font-size: 12px;
    padding: 6px 10px;
  }

  .bx-topbar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 10px;
    text-align: center;
  }

  .bx-nav {
    height: auto;
  }

  .bx-nav-inner {
    height: auto;
    padding: 10px 16px 16px;
    flex-direction: column;
    gap: 12px;
  }

  .bx-logo img,
  .bx-logo .custom-logo {
    width: 180px;
    transform: none;
  }

  .bx-menu {
    width: 100%;
  }

  .bx-menu-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    margin: 0;
    padding: 0;
  }

  .bx-menu-list a {
    font-size: 15px;
  }

  .bx-actions {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .bx-cta {
    padding: 9px 18px;
    font-size: 14px;
  }

  .bx-nav-left::after {
    display: none;
  }

  .bx-hero {
    min-height: auto;
    padding: 34px 18px 50px;
    background-position: center;
    background-size: cover;
  }

  .bx-hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
    max-width: 100%;
  }

  .bx-hero__image {
    order: -1;
  }

  .bx-hero__image img {
    width: min(78vw, 320px);
  }

  .bx-hero h1 {
    font-size: clamp(34px, 10vw, 54px);
    line-height: 1.05;
  }

  .bx-hero p {
    font-size: 16px;
    line-height: 1.5;
  }

  .bx-hero__buttons {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .bx-btn--primary,
  .bx-btn--secondary {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }

  .bx-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
    padding: 0 20px;
  }

  .bx-footer__brand {
    display: flex;
    justify-content: center;
  }
}

/* ---------- LOADER MOBILE ---------- */
@media (max-width: 768px) {

  #be-loader {
    overflow: hidden;
  }

  #be-loader .be-loader-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    transform: none;
    gap: 10px;
  }

  #be-loader .be-stack {
    width: min(62vw, 280px);
    height: min(62vw, 280px);
    margin: 0 auto;
  }

  .be-loading-text {
    margin-top: 0;
    max-width: 90vw;
    font-size: clamp(14px, 5vw, 18px);
    line-height: 1.25;
    text-align: center;
  }

  .be-progress {
    width: min(72vw, 260px);
    margin-top: 10px;
  }
}