/* Brand n Builders — font faces + design-system variables.
   Loaded before wp-bundle.css so its var(--font-display)/var(--font-inter)
   references resolve. Self-hosted woff2 (no Google Fonts request) = fast. */

@font-face {
  font-family: "Sora";
  src: url("fonts/sora-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "Sora";
  --font-inter: "Inter";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

/* When Elementor Theme-Builder header/footer are active the theme markup is
   suppressed; keep the near-black canvas so there is never a white flash. */
html,
body.elementor-page {
  background: var(--background, #080808);
}

/* ── Elementor editor: force scroll-reveal content visible ──────────────────
   Sections are authored without scrolling, and the IntersectionObserver that
   normally reveals `.reveal*` elements doesn't fire reliably inside the editor
   canvas — so everything would stay at opacity:0 (blank canvas). Inside the
   editor/preview we short-circuit every entrance animation to its resting
   (visible) state. The live front-end still animates on scroll. */
.bnb-elementor-preview .reveal,
.bnb-elementor-preview .reveal-left,
.bnb-elementor-preview .reveal-right,
.bnb-elementor-preview .reveal-scale,
.bnb-elementor-preview .anim-rise,
.bnb-elementor-preview .anim-fade,
.elementor-editor-active .reveal,
.elementor-editor-active .reveal-left,
.elementor-editor-active .reveal-right,
.elementor-editor-active .reveal-scale,
.elementor-editor-active .anim-rise,
.elementor-editor-active .anim-fade {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
/* Keep the reveal container itself from clipping its children in the editor. */
.bnb-elementor-preview .overflow-hidden .anim-rise {
  transform: none !important;
}

/* ── Interaction helpers not covered by the compiled utility CSS ─────────── */

/* Hero logo badge fades out once the page is scrolled (engine toggles the
   body class). Mirrors the original React `scrolled` state. */
.bnb-hero-badge {
  transition: opacity 0.3s ease;
}
body.bnb-scrolled .bnb-hero-badge {
  opacity: 0;
  pointer-events: none;
}

/* Elementor wraps each widget; let BNB sections span full width and stack
   without inherited padding so they match the original edge-to-edge layout. */
.elementor-widget-bnb_hero,
.elementor-widget[class*="elementor-widget-bnb_"] {
  width: 100%;
}

/* ── About orbit rings (CSS replacement for the react-spring version) ───────
   Each layer rotates continuously; a negative animation-delay offsets it to the
   node's start angle. The node counter-rotates at the same phase to stay
   upright. Rendered desktop-only (decorative). */
@keyframes bnb-orbit-cw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes bnb-orbit-ccw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}
@keyframes bnb-spin-cw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes bnb-spin-ccw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
@keyframes bnb-pulse-scale {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.05); }
}
.bnb-orbit-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
}
.bnb-orbit-node {
  will-change: transform;
}
.bnb-pulse-mark {
  animation: bnb-pulse-scale 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .bnb-orbit-layer,
  .bnb-orbit-node,
  .bnb-pulse-mark {
    animation: none !important;
  }
}

/* ── Site header (two-state, scroll-driven) ─────────────────────────────────
   Top of page: transparent bar, centred links (the hero supplies the logo).
   Scrolled (body.bnb-scrolled): compact glowing pill with its own logo badge.
   Mirrors components/layout/site-nav.tsx without React. */
.bnb-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 70;
  pointer-events: none;
  padding: 1rem;
  transition: padding 0.3s ease;
}
body.bnb-scrolled .bnb-nav-wrap {
  padding: 18px 10px 10px;
}
.bnb-nav {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  pointer-events: auto;
  height: 5.2rem;
  width: 100%;
  border-radius: 2rem;
  padding: 0 1.5rem;
  transition: height 0.5s ease, width 0.5s ease, border-radius 0.5s ease,
    box-shadow 0.5s ease, padding 0.5s ease;
}
body.bnb-scrolled .bnb-nav {
  height: 4.6rem;
  width: 98%;
  max-width: 1560px;
  border-radius: 1.2rem;
  padding: 0 2rem;
  box-shadow: 0 0 20px rgba(123, 47, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.3);
}
.bnb-nav-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 1.2rem;
  padding: 1.5px;
  opacity: 0;
  transition: opacity 0.5s ease;
  background-image: linear-gradient(
    90deg,
    rgba(123, 47, 255, 0.45) 0%,
    rgba(6, 182, 212, 0.45) 50%,
    rgba(123, 47, 255, 0.45) 100%
  );
  background-size: 200% 100%;
  animation: bnb-shimmer 6s linear infinite;
  pointer-events: none;
}
body.bnb-scrolled .bnb-nav-glow {
  opacity: 1;
}
.bnb-nav-glow > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1.2rem;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.bnb-nav-badge {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  padding-left: 2rem;
  padding-right: 1.5rem;
  z-index: 20;
  height: 5.2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, height 0.5s ease;
}
body.bnb-scrolled .bnb-nav-badge {
  opacity: 1;
  pointer-events: auto;
  height: 4.6rem;
}
.bnb-nav-spacer {
  width: 14.5rem;
  flex-shrink: 0;
  transition: width 0.5s ease;
}
/* Wide screens: the 5-link cluster used to float as a small island with
   ~420px of dead space on either side. Let it breathe — larger tracking
   between items and slightly bigger type so the middle reads filled. */
@media (min-width: 1440px) {
  .bnb-nav > ul {
    gap: clamp(2rem, 4vw, 5.5rem) !important;
  }
  .bnb-nav > ul a {
    font-size: 0.92rem !important;
  }
}
body.bnb-scrolled .bnb-nav-spacer {
  width: 11.5rem;
}
/* Mobile slide-down panel */
.bnb-nav-mobile {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
  pointer-events: auto;
}
.bnb-nav-mobile.is-open {
  max-height: 85vh !important;
  overflow-y: auto;
}
.bnb-burger {
  margin-left: auto;
  pointer-events: auto;
}
.bnb-burger span {
  display: block;
  height: 1.5px;
  width: 24px;
  background: var(--foreground);
  transition: transform 0.3s ease;
}
.bnb-burger.is-open span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}
.bnb-burger.is-open span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}
/* SiteNav-specific classes weren't part of the compiled bundle, so pin the
   sizes the header relies on explicitly. !important beats Elementor's generic
   `.elementor img { height:auto }` reset. */
.bnb-nav .bnb-nav-badge img {
  height: 1.7rem !important;
  width: auto !important;
  max-width: none;
  filter: brightness(0) invert(1);
}
@media (min-width: 768px) {
  .bnb-nav .bnb-nav-badge img {
    height: 1.9rem !important;
  }
}
.bnb-nav a[aria-label="WhatsApp"] {
  background-color: #25d366;
}
.bnb-nav a[aria-label="WhatsApp"]:hover {
  background-color: #22c35e;
}
.bnb-footer-logo {
  height: 1.9rem !important;
  width: auto !important;
  max-width: none;
  filter: brightness(0) invert(1);
}

/* Hero particle-morph canvas: clickable, but vertical page scroll must keep
   working on touch devices. */
[data-bnb-morph] {
  cursor: pointer;
  touch-action: pan-y;
}

/* ── Hero 3D chrome scene ─────────────────────────────────────────────────*/
[data-bnb-hero3d] {
  cursor: grab;
  touch-action: pan-y;
}
[data-bnb-hero3d]:active {
  cursor: grabbing;
}
.bnb-hero-cards {
  position: absolute;
  right: 0.25rem;
  bottom: 0.25rem;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.8rem;
  justify-content: end;
  pointer-events: none;
  z-index: 10;
}
.bnb-glass-card {
  min-width: 9rem;
  padding: 1rem 1.2rem 0.95rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.35);
}
.bnb-glass-card .num {
  display: block;
  font-family: var(--font-display), sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--foreground);
}
.bnb-glass-card .lbl {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 640px) {
  .bnb-hero-cards {
    position: static;
    grid-template-columns: repeat(3, 1fr);
    justify-content: stretch;
    margin-top: -3rem;
  }
  .bnb-glass-card {
    min-width: 0;
    padding: 0.8rem 0.9rem;
  }
  .bnb-glass-card .num {
    font-size: 1.4rem;
  }
}

/* ── Help / chat launcher (site-wide) ───────────────────────────────────── */
.bnb-chat {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 8000;
  font-family: var(--font-inter), system-ui, sans-serif;
}
.bnb-chat-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light) 60%, var(--cyan));
  box-shadow: 0 0.4rem 1.6rem rgba(123, 47, 255, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: bnb-pulse 2.6s ease-in-out infinite;
}
.bnb-chat-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 0.5rem 2rem rgba(123, 47, 255, 0.6);
}
.bnb-chat-fab svg {
  width: 1.6rem;
  height: 1.6rem;
}
.bnb-chat-fab .ico-close { display: none; }
.bnb-chat.is-open .bnb-chat-fab .ico-chat { display: none; }
.bnb-chat.is-open .bnb-chat-fab .ico-close { display: block; }
.bnb-chat.is-open .bnb-chat-fab { animation: none; }

.bnb-chat-card {
  position: absolute;
  right: 0;
  bottom: 4.6rem;
  width: min(24rem, calc(100vw - 2.8rem));
  border-radius: 1.25rem;
  overflow: hidden;
  background: #0c0c12;
  border: 1px solid rgba(155, 79, 255, 0.25);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.65), 0 0 2.5rem rgba(123, 47, 255, 0.15);
  opacity: 0;
  transform: translateY(0.8rem) scale(0.97);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bnb-chat.is-open .bnb-chat-card {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.bnb-chat-head {
  padding: 1.4rem 1.4rem 1.2rem;
  background:
    radial-gradient(ellipse 90% 120% at 100% 0%, rgba(123, 47, 255, 0.25), transparent 60%),
    #101018;
  border-bottom: 1px solid var(--line);
}
.bnb-chat-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.bnb-chat-status i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0.6rem rgba(34, 197, 94, 0.8);
}
.bnb-chat-head h3 {
  font-family: var(--font-display), sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin: 0 0 0.35rem;
}
.bnb-chat-head p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.bnb-chat-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.bnb-chat-opt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.bnb-chat-opt:hover {
  border-color: rgba(155, 79, 255, 0.5);
  background: rgba(123, 47, 255, 0.07);
  transform: translateX(3px);
}
.bnb-chat-opt .ic {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(123, 47, 255, 0.14);
  color: var(--primary-light);
}
.bnb-chat-opt .ic svg { width: 1.15rem; height: 1.15rem; }
.bnb-chat-opt .ic.wa { background: rgba(37, 211, 102, 0.14); color: #25d366; }
.bnb-chat-opt .ic.cy { background: rgba(74, 217, 238, 0.12); color: var(--cyan); }
.bnb-chat-opt b {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--foreground);
}
.bnb-chat-opt span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.bnb-chat-opt .arr {
  margin-left: auto;
  color: var(--muted-dim);
  transition: color 0.25s ease, transform 0.25s ease;
}
.bnb-chat-opt:hover .arr {
  color: var(--cyan);
  transform: translate(2px, -2px);
}
.bnb-chat-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem 1.1rem;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--muted-dim);
}
.bnb-chat-foot svg {
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  color: var(--primary-light);
}
@media (prefers-reduced-motion: reduce) {
  .bnb-chat-fab { animation: none; }
}

