/* ===================================================================
   BUN & BURNS — COMPONENTS
   =================================================================== */

/* ===================================================================
   PRELOADER
   =================================================================== */

#preloader{
  position: fixed;
  inset: 0;
  background: var(--bb-black);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}
#preloader.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-mark{
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-mark img{
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  animation: preloaderPulse 1.4s ease-in-out infinite;
}
.preloader-ring{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--bb-line);
  border-top-color: var(--bb-gold);
  animation: spin 1s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
@keyframes preloaderPulse{
  0%, 100%{ opacity: 0.7; transform: scale(0.96); }
  50%{ opacity: 1; transform: scale(1.04); }
}

/* ===================================================================
   BUTTONS
   =================================================================== */

.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s ease;
  white-space: nowrap;
}

.btn span{ position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px;}

.btn-primary{
  background: var(--grad-gold);
  color: var(--bb-black);
  box-shadow: var(--shadow-gold);
}
.btn-primary::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bb-gold-light), var(--bb-gold));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.btn-primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -8px rgba(212,175,55,0.45);
}
.btn-primary:hover::before{ opacity: 1; }
.btn-primary:active{ transform: translateY(-1px) scale(0.98); }

.btn-outline{
  background: transparent;
  color: var(--bb-white);
  border-color: rgba(248,246,241,0.28);
}
.btn-outline:hover{
  border-color: var(--bb-gold);
  color: var(--bb-gold);
  transform: translateY(-3px);
  background: rgba(212,175,55,0.06);
}

.btn-ghost-gold{
  background: rgba(212,175,55,0.08);
  color: var(--bb-gold);
  border-color: var(--bb-line);
}
.btn-ghost-gold:hover{
  background: rgba(212,175,55,0.15);
  border-color: var(--bb-gold);
  transform: translateY(-2px);
}

.btn-sm{
  padding: 11px 22px;
  font-size: 0.78rem;
}

.btn-block{ width: 100%; }

.btn-whatsapp{
  background: #25D366;
  color: #07150c;
  box-shadow: 0 12px 32px -8px rgba(37,211,102,0.45);
}
.btn-whatsapp:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -8px rgba(37,211,102,0.6);
}

.btn:focus-visible{
  outline: 2px solid var(--bb-gold-light);
  outline-offset: 4px;
}

/* ===================================================================
   NAVBAR
   =================================================================== */

.navbar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px clamp(1.4rem, 5vw, 3.2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(11,11,11,0.92) 0%, rgba(11,11,11,0.78) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s var(--ease-out), background 0.4s var(--ease-out), border-color 0.4s ease;
}

.navbar.is-scrolled{
  padding: 10px clamp(1.4rem, 5vw, 3.2rem);
  background: rgba(11,11,11,0.96);
  border-bottom: 1px solid var(--bb-line);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
}

.nav-logo{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  z-index: 1100;
}
.nav-logo img{
  height: 58px;
  width: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid var(--bb-gold-dim);
  transition: height 0.4s var(--ease-out), width 0.4s var(--ease-out), transform 0.4s ease;
}
.navbar.is-scrolled .nav-logo img{
  height: 46px;
  width: 46px;
}
.nav-logo:hover img{ transform: scale(1.06) rotate(-3deg); }

.nav-logo-text{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.nav-logo-text .name{
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--bb-white);
  letter-spacing: 0.01em;
}
.nav-logo-text .name em{
  color: var(--bb-gold);
  font-style: italic;
}
.nav-logo-text .tag{
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bb-gray);
  margin-top: 2px;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.4vw, 2.6rem);
}

.nav-links a{
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bb-white);
  padding: 6px 2px;
  transition: color 0.3s ease;
}
.nav-links a::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
  transition: width 0.35s var(--ease-out);
}
.nav-links a:hover{ color: var(--bb-gold); }
.nav-links a:hover::after,
.nav-links a.active::after{ width: 100%; }
.nav-links a.active{ color: var(--bb-gold); }

.nav-actions{
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1100;
}

/* The "Order Now" CTA only ever appears once: inside nav-links on mobile,
   inside nav-actions on desktop. Hidden by default, shown per breakpoint below. */
.mobile-only-cta{ display: none; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  z-index: 1100;
}
.nav-toggle span{
  display: block;
  width: 100%;
  height: 2px;
  background: var(--bb-gold);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.3s ease;
}
.nav-toggle.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2){ opacity: 0; }
.nav-toggle.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px){
  .nav-links{
    position: fixed;
    top: 0;
    right: -100%;
    width: min(82vw, 360px);
    height: 100vh;
    background: linear-gradient(165deg, #161310 0%, #0B0B0B 100%);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--sp-5);
    padding: var(--sp-7) var(--sp-6);
    transition: right 0.5s var(--ease-out);
    border-left: 1px solid var(--bb-line);
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  }
  .nav-links.is-open{ right: 0; }
  .nav-links a{ font-size: 1.3rem; }
  .nav-links .btn{ margin-top: var(--sp-3); }
  .mobile-only-cta{ display: list-item; }
  .nav-toggle{ display: flex; }
  .nav-actions .btn-primary.desktop-only{ display: none; }
}

.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-overlay.is-active{
  opacity: 1;
  pointer-events: auto;
}

/* ===================================================================
   CARDS — generic premium card shell
   =================================================================== */

.card{
  background: linear-gradient(165deg, var(--bb-black-card) 0%, var(--bb-black-soft) 100%);
  border: 1px solid var(--bb-line);
  border-radius: var(--r-lg);
  position: relative;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s ease;
}
.card:hover{
  transform: translateY(-8px);
  border-color: rgba(212,175,55,0.45);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(212,175,55,0.08);
}

.glass{
  background: rgba(22,19,16,0.55);
  border: 1px solid rgba(248,246,241,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-lg);
}

/* ===================================================================
   BADGES / TAGS
   =================================================================== */

.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  background: var(--grad-gold);
  color: var(--bb-black);
}
.badge-outline{
  background: transparent;
  border: 1px solid var(--bb-gold);
  color: var(--bb-gold);
}
.badge-ember{
  background: var(--grad-ember);
  color: var(--bb-black);
}
.badge-dark{
  background: rgba(11,11,11,0.7);
  border: 1px solid var(--bb-line);
  color: var(--bb-gold);
}

.spice{
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.spice i{
  font-size: 0.7rem;
  color: var(--bb-gray-dim);
}
.spice i.active{ color: var(--bb-ember); }

/* ===================================================================
   FORM ELEMENTS
   =================================================================== */

.field{
  margin-bottom: var(--sp-4);
}
.field label{
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bb-gray);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.field input,
.field textarea,
.field select{
  width: 100%;
  padding: 16px 18px;
  background: var(--bb-black-soft);
  border: 1px solid var(--bb-line);
  border-radius: var(--r-sm);
  color: var(--bb-white);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.field input::placeholder,
.field textarea::placeholder{
  color: var(--bb-gray-dim);
}
.field input:focus,
.field textarea:focus,
.field select:focus{
  outline: none;
  border-color: var(--bb-gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.14);
  background: var(--bb-black-card);
}
.field textarea{
  min-height: 140px;
  resize: vertical;
}

/* ===================================================================
   DIVIDERS
   =================================================================== */

.hr-gold{
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--bb-line) 25%, var(--bb-line) 75%, transparent);
  border: none;
}

.flame-divider{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: var(--sp-5) auto;
  color: var(--bb-gold-dim);
}
.flame-divider::before,
.flame-divider::after{
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bb-gold-dim));
}
.flame-divider::after{
  background: linear-gradient(90deg, var(--bb-gold-dim), transparent);
}

/* ===================================================================
   BACK TO TOP
   =================================================================== */

.back-to-top{
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bb-black-card);
  border: 1px solid var(--bb-line);
  color: var(--bb-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease, border-color 0.3s ease;
  z-index: 800;
}
.back-to-top.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover{
  background: var(--bb-gold);
  color: var(--bb-black);
  border-color: var(--bb-gold);
}

/* ===================================================================
   WHATSAPP FLOAT
   =================================================================== */

.whatsapp-float{
  position: fixed;
  right: 24px;
  bottom: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #07150c;
  z-index: 800;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  animation: floatPulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover{ animation-play-state: paused; transform: scale(1.08); }

@keyframes floatPulse{
  0%, 100%{ box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.5); }
  50%{ box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
}

@media (max-width: 600px){
  .whatsapp-float{ width: 50px; height: 50px; font-size: 1.4rem; right: 16px; bottom: 16px; }
  .back-to-top{ right: 16px; bottom: 78px; width: 42px; height: 42px; }
}

/* ===================================================================
   TOAST (order/contact form feedback)
   =================================================================== */

.toast{
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--bb-black-card);
  border: 1px solid var(--bb-gold);
  color: var(--bb-white);
  padding: 16px 26px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 5000;
  max-width: 90vw;
  text-align: center;
}
.toast.is-active{
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast i{ color: var(--bb-gold); }
