/*
 * bti-header.css
 * Топбар + навігація для теми PopularFX (дочірня)
 * Стиль: bti_website16.html
 */

/* ────────────────────────────────────
   СКИДАННЯ СТАНДАРТНОЇ ШАПКИ PopularFX
──────────────────────────────────── */
#masthead.site-header,
.site-header {
  display: none !important;
}

/* ────────────────────────────────────
   ТОПБАР
──────────────────────────────────── */
.bti-topbar {
  background: #2d2b7a;
  padding: 0;
  width: 100%;
}
.bti-topbar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 96px;
  gap: 0;
}

/* Ліво */
.bti-tb-left {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px 12px 0;
  border-right: 1px solid rgba(255,255,255,.12);
}
.bti-tb-addr {
  color: #d0d0f8;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.bti-tb-addr svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.bti-tb-icons {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}
.bti-tb-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  cursor: pointer;
  text-decoration: none;
}
.bti-tb-icon:hover {
  background: rgba(255,255,255,.22);
}
.bti-tb-icon svg {
  width: 16px;
  height: 16px;
}

/* Центр */
.bti-tb-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 24px;
}
.bti-tb-logo-link {
  display: inline-flex;
  text-decoration: none;
}
.bti-tb-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.2));
}
.bti-tb-brand__line1 {
  font-size: 18px;
  font-weight: 800;
  color: #f5c400;
  line-height: 1.15;
  letter-spacing: .3px;
}
.bti-tb-brand__line2 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}
.bti-tb-brand__line3 {
  font-size: 11px;
  color: #a0a0d8;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Право */
.bti-tb-right {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0 12px 20px;
  border-left: 1px solid rgba(255,255,255,.12);
}
.bti-tb-btn {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  padding: 11px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.bti-tb-btn:hover {
  background: #fff;
  color: #2d2b7a;
}
.bti-tb-phones {
  background: #f5c400;
  border-radius: 10px;
  padding: 10px 18px;
  text-align: center;
  cursor: pointer;
  transition: background .2s;
}
.bti-tb-phones:hover {
  background: #ffd100;
}
.bti-tb-phones a {
  display: block;
  color: #1a1a6e;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: .3px;
  text-decoration: none;
}

/* ────────────────────────────────────
   НАВІГАЦІЯ
──────────────────────────────────── */
.bti-nav-wrap {
  background: #fff;
  border-bottom: 2px solid #f5c400;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .3s;
}
.bti-nav-wrap.bti-scrolled {
  box-shadow: 0 3px 24px rgba(0,0,0,.10);
}
.bti-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Міні-лого (прихований по замовчуванню, видно на мобільному) */
.bti-nav-logo-mini {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
}
.bti-nav-logo-mini img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.bti-nav-logo-mini span {
  font-size: 17px;
  font-weight: 900;
  color: #2d2b7a;
  letter-spacing: 2px;
}

/* Меню */
.bti-nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}
/* WP-генерований ul */
.bti-nav-menu ul#bti-primary-menu,
.bti-nav-menu .menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bti-nav-menu ul#bti-primary-menu li,
.bti-nav-menu .menu li {
  display: inline-block;
  position: relative;
}
.bti-nav-menu ul#bti-primary-menu li a,
.bti-nav-menu .menu li a {
  color: #2d2b7a;
  font-size: 13px;
  font-weight: 700;
  padding: 17px 16px;
  display: block;
  letter-spacing: .7px;
  text-transform: uppercase;
  position: relative;
  transition: color .2s;
  white-space: nowrap;
  text-decoration: none;
}
.bti-nav-menu ul#bti-primary-menu li a::after,
.bti-nav-menu .menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #f5c400;
  transform: scaleX(0);
  transition: transform .25s;
  transform-origin: center;
}
.bti-nav-menu ul#bti-primary-menu li a:hover,
.bti-nav-menu .menu li a:hover,
.bti-nav-menu .current-menu-item > a,
.bti-nav-menu .current-menu-ancestor > a {
  color: #f5c400;
}
.bti-nav-menu ul#bti-primary-menu li a:hover::after,
.bti-nav-menu .menu li a:hover::after,
.bti-nav-menu .current-menu-item > a::after,
.bti-nav-menu .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

/* CTA в nav */
.bti-nav-cta {
  background: #f5c400;
  color: #1a1a6e;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  margin-left: 8px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  flex-shrink: 0;
}
.bti-nav-cta:hover {
  background: #ffd100;
  transform: translateY(-1px);
}

/* Бургер */
.bti-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.bti-burger span {
  width: 24px;
  height: 2px;
  background: #2d2b7a;
  border-radius: 2px;
  display: block;
  transition: all .3s;
}
.bti-burger.bti-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.bti-burger.bti-open span:nth-child(2) { opacity: 0; }
.bti-burger.bti-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Мобільне меню — панель, що випадає */
.bti-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  z-index: 999;
  border-top: 1px solid #f5c400;
}
.bti-mobile-menu.bti-open {
  display: block;
}
.bti-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bti-mobile-menu ul li a {
  display: block;
  color: #2d2b7a;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-bottom: 1px solid #f0f0f0;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-decoration: none;
}
.bti-mobile-menu ul li a:hover {
  background: #fffbe6;
  color: #c8a000;
}

/* ────────────────────────────────────
   МЕДІА-ЗАПИТИ
──────────────────────────────────── */
@media (max-width: 1100px) {
  .bti-topbar__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding: 12px 20px;
    min-height: unset;
  }
  .bti-tb-left,
  .bti-tb-right {
    border: none;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .bti-nav-menu {
    display: none;
  }
  .bti-nav-logo-mini {
    display: flex;
  }
  .bti-burger {
    display: flex;
  }
  .bti-nav-cta {
    display: none;
  }
  .bti-nav-wrap {
    position: relative; /* щоб мобільне меню позиціонувалось відносно нього */
  }
  /* На мобільному topbar — колонка */
  .bti-tb-center {
    flex-direction: column;
    text-align: center;
    padding: 8px 0;
  }
}

@media (max-width: 480px) {
  .bti-tb-phones a {
    font-size: 14px;
  }
  .bti-tb-brand__line1,
  .bti-tb-brand__line2 {
    font-size: 15px;
  }
  .bti-tb-logo {
    width: 48px;
    height: 48px;
  }
}
