/* ==========================================================================
   FlipBiznes — menu mobilne (off-canvas)
   Breakpoint: 921px (keep in sync with fb_drawer_breakpoint() in PHP)
   Palette read from the live site: --ast-global-color-0 / -1
   ========================================================================== */

#fb-drawer{
  --fb-navy:#13213f;
  --fb-navy-2:#0E1932;
  --fb-navy-3:#1B2B4D;
  --fb-brass:#A97F3D;
  --fb-brass-2:#C69A55;
  --fb-ivory:#F4F1EA;
  --fb-muted:#9CA6BC;
  --fb-line:rgba(255,255,255,.10);
  --fb-line-2:rgba(255,255,255,.06);
  --fb-surface:rgba(255,255,255,.045);
}

/* ---------- shell ---------- */

#fb-drawer-backdrop{
  position:fixed; inset:0; z-index:99998;
  background:rgba(8,14,28,.62);
  opacity:0; transition:opacity .26s ease;
  -webkit-tap-highlight-color:transparent;
}
#fb-drawer-backdrop.is-open{ opacity:1; }

#fb-drawer{
  position:fixed; top:0; right:0; bottom:0; z-index:99999;
  width:min(90vw,400px);
  display:flex; flex-direction:column;
  background:var(--fb-navy);
  color:var(--fb-ivory);
  font-size:16px;
  font-family:inherit;
  box-shadow:-18px 0 46px -20px rgba(0,0,0,.75);
  transform:translateX(100%);
  transition:transform .28s cubic-bezier(.32,.72,0,1);
  overscroll-behavior:contain;
}
#fb-drawer.is-open{ transform:translateX(0); }

/* [hidden] must not beat the flex display */
#fb-drawer[hidden],
#fb-drawer-backdrop[hidden]{ display:none; }

html.fb-drawer-open{ overflow:hidden; }

/* ---------- top bar (optional) ---------- */

#fb-drawer .fb-topbar{
  flex:0 0 auto;
  background:var(--fb-brass); color:#1A1206;
  font-size:11.5px; font-weight:600; letter-spacing:.02em; line-height:1.4;
  text-align:center; padding:7px 12px;
  padding-top:calc(7px + env(safe-area-inset-top));
}

/* ---------- header ---------- */

#fb-drawer .fb-head{
  flex:0 0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 10px 12px 18px;
  padding-top:calc(12px + env(safe-area-inset-top));
  border-bottom:1px solid var(--fb-line);
  background:var(--fb-navy-2);
}
#fb-drawer .fb-topbar + .fb-head{ padding-top:12px; }

#fb-drawer .fb-mark{ display:flex; align-items:center; text-decoration:none; min-width:0; }
#fb-drawer .fb-mark img{ height:30px; width:auto; max-width:190px; display:block; }
#fb-drawer .fb-mark-text{
  color:var(--fb-ivory); font-weight:700; font-size:16px; letter-spacing:.01em;
}

#fb-drawer .fb-iconbtn{
  flex:0 0 auto;
  width:42px; height:42px;
  display:grid; place-items:center;
  border:0; background:transparent; border-radius:12px;
  color:var(--fb-ivory); cursor:pointer; text-decoration:none;
  -webkit-tap-highlight-color:transparent;
  transition:background .18s ease, color .18s ease;
}
#fb-drawer .fb-iconbtn:hover{ background:var(--fb-surface); color:var(--fb-brass-2); }
#fb-drawer .fb-iconbtn:focus-visible{ outline:2px solid var(--fb-brass-2); outline-offset:-2px; }
#fb-drawer .fb-iconbtn svg{ width:21px; height:21px; }

/* ---------- scroll area ---------- */

#fb-drawer .fb-scroll{
  flex:1 1 auto;
  overflow-y:auto; -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}

/* ---------- primary CTA ---------- */

#fb-drawer .fb-ctawrap{
  padding:16px 16px 4px;
}
#fb-drawer .fb-cta{
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%; padding:14px 12px;
  border-radius:12px;
  background:var(--fb-brass);
  color:#160E03;
  font-size:14.5px; font-weight:700; line-height:1.25; letter-spacing:.01em;
  text-decoration:none; text-align:center;
  box-shadow:0 8px 20px -12px rgba(169,127,61,.9);
  transition:background .18s ease, transform .12s ease;
}
#fb-drawer .fb-cta span{ flex:0 1 auto; }
#fb-drawer .fb-cta svg{ flex:0 0 auto; width:16px; height:16px; stroke-width:2; }
#fb-drawer .fb-cta:hover,
#fb-drawer .fb-cta:focus{ background:var(--fb-brass-2); color:#160E03; }
#fb-drawer .fb-cta:active{ transform:translateY(1px); }
#fb-drawer .fb-cta:focus-visible{ outline:2px solid #fff; outline-offset:2px; }

#fb-drawer .fb-cta-note{
  margin:8px 0 0;
  font-size:11.5px; line-height:1.4; color:var(--fb-muted); text-align:center;
}

/* ---------- phone + e-mail ---------- */

#fb-drawer .fb-contact{
  display:grid; gap:8px;
  padding:14px 16px 2px;
}
#fb-drawer .fb-cbtn{
  display:flex; align-items:center; gap:11px;
  padding:9px 12px;
  border:1px solid var(--fb-line);
  border-radius:12px;
  background:var(--fb-surface);
  color:var(--fb-ivory); text-decoration:none;
  transition:border-color .18s ease, background .18s ease;
}
#fb-drawer .fb-cbtn:hover,
#fb-drawer .fb-cbtn:focus{ border-color:var(--fb-brass); background:rgba(169,127,61,.12); }
#fb-drawer .fb-cbtn:focus-visible{ outline:2px solid var(--fb-brass-2); outline-offset:2px; }

#fb-drawer .fb-cic{
  flex:0 0 auto; width:32px; height:32px;
  display:grid; place-items:center;
  border-radius:9px; background:rgba(169,127,61,.18); color:var(--fb-brass-2);
}
#fb-drawer .fb-cic svg{ width:17px; height:17px; }

#fb-drawer .fb-ctxt{ display:block; min-width:0; }
#fb-drawer .fb-ctxt small{
  display:block; font-size:10px; letter-spacing:.07em; text-transform:uppercase;
  color:var(--fb-muted); line-height:1.3;
}
#fb-drawer .fb-ctxt strong{
  display:block; font-size:14.5px; font-weight:600; line-height:1.35;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* ---------- main list ---------- */

#fb-drawer .fb-list{
  padding:14px 12px 0;
}

#fb-drawer .fb-row{
  display:flex; align-items:center; gap:13px;
  width:100%;
  padding:11px 8px;
  border:0; background:transparent;
  border-bottom:1px solid var(--fb-line-2);
  color:var(--fb-ivory);
  font-size:15.5px; font-family:inherit; text-align:left; text-decoration:none;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
#fb-drawer .fb-row:last-child{ border-bottom:0; }
#fb-drawer .fb-row:hover .fb-lbl,
#fb-drawer .fb-row:focus .fb-lbl{ color:var(--fb-brass-2); }
#fb-drawer .fb-row:focus-visible{ outline:2px solid var(--fb-brass-2); outline-offset:-3px; border-radius:8px; }

#fb-drawer .fb-ic{
  flex:0 0 auto; width:34px; height:34px;
  display:grid; place-items:center;
  background:var(--fb-surface); border-radius:10px; color:var(--fb-brass-2);
  transition:background .18s ease, color .18s ease;
}
#fb-drawer .fb-lbl{
  flex:1 1 auto; min-width:0;
  font-weight:500; line-height:1.3;
  transition:color .18s ease;
}
#fb-drawer .fb-chev{ flex:0 0 auto; color:var(--fb-muted); display:grid; place-items:center; transition:transform .22s ease; }
#fb-drawer .fb-chev svg{ width:17px; height:17px; stroke-width:2.1; }

#fb-drawer .fb-row.is-active .fb-lbl{ color:var(--fb-brass-2); font-weight:600; }
#fb-drawer .fb-row.is-active .fb-ic{ background:rgba(169,127,61,.2); }

#fb-drawer .fb-toggle[aria-expanded="true"]{ border-bottom-color:transparent; }
#fb-drawer .fb-toggle[aria-expanded="true"] .fb-ic{ background:var(--fb-brass); color:#160E03; }
#fb-drawer .fb-toggle[aria-expanded="true"] .fb-chev{ transform:rotate(180deg); color:var(--fb-brass-2); }

/* ---------- submenu ---------- */

#fb-drawer .fb-sub{
  display:grid; grid-template-rows:0fr;
  transition:grid-template-rows .26s ease;
}
#fb-drawer .fb-sub[data-open="true"]{ grid-template-rows:1fr; }
#fb-drawer .fb-sub > div{ overflow:hidden; }

#fb-drawer .fb-subinner{
  background:var(--fb-navy-3); border-radius:12px;
  padding:6px 8px 8px; margin:0 0 10px;
}
#fb-drawer .fb-subinner a{
  display:block;
  padding:9px 12px; border-radius:8px;
  font-size:14px; line-height:1.35; color:#CBD3E2; text-decoration:none;
}
#fb-drawer .fb-subinner a:hover,
#fb-drawer .fb-subinner a:focus{ background:rgba(255,255,255,.06); color:#fff; }
#fb-drawer .fb-subinner a.is-active{ color:var(--fb-brass-2); font-weight:600; }
#fb-drawer .fb-subinner .fb-all{ color:var(--fb-brass-2); font-weight:600; font-size:13px; }

/* ---------- secondary links ---------- */

#fb-drawer .fb-sec{
  margin:18px 20px 0; padding-top:8px;
  border-top:1px solid var(--fb-line);
  display:grid; grid-template-columns:1fr 1fr; gap:2px 12px;
}
#fb-drawer .fb-sec a{
  display:flex; align-items:center; gap:9px;
  padding:9px 0;
  font-size:13px; color:var(--fb-muted); text-decoration:none;
}
#fb-drawer .fb-sec a svg{ flex:0 0 auto; width:15px; height:15px; }
#fb-drawer .fb-sec a:hover,
#fb-drawer .fb-sec a:focus{ color:var(--fb-brass-2); }

/* ---------- footer ---------- */

#fb-drawer .fb-foot{
  margin-top:16px;
  padding:16px 20px calc(22px + env(safe-area-inset-bottom));
  border-top:1px solid var(--fb-line);
  background:var(--fb-navy-2);
}
#fb-drawer .fb-addr{
  margin:0;
  font-size:11.5px; line-height:1.65; color:var(--fb-muted); text-align:center;
}
#fb-drawer .fb-addr strong{ color:#D9DFEA; font-weight:600; }

#fb-drawer .fb-social{ display:flex; justify-content:center; gap:10px; margin-top:14px; }
#fb-drawer .fb-social a{
  width:36px; height:36px;
  display:grid; place-items:center;
  border:1px solid var(--fb-line); border-radius:10px;
  color:var(--fb-muted); line-height:0;
  transition:color .18s ease, border-color .18s ease, background .18s ease;
}
#fb-drawer .fb-social a:hover,
#fb-drawer .fb-social a:focus{ color:var(--fb-brass-2); border-color:var(--fb-brass); background:rgba(169,127,61,.12); }

/* ==========================================================================
   Desktop: never show. Astra's own mobile dropdown: never show on mobile.
   ========================================================================== */

@media (min-width:922px){
  #fb-drawer,
  #fb-drawer-backdrop{ display:none !important; }
}

@media (max-width:921px){
  #ast-mobile-header > .ast-mobile-header-content,
  .ast-mobile-popup-drawer,
  #ast-mobile-popup{ display:none !important; }
}

@media (prefers-reduced-motion:reduce){
  #fb-drawer,
  #fb-drawer-backdrop,
  #fb-drawer .fb-sub,
  #fb-drawer .fb-chev{ transition:none !important; }
}
