/* site-nav.css — Kamu sitesi üst menüsü (musteri-header.php)
   Sınıflar bn- önekiyle izole; sayfaların eski .topnav/.navbar kurallarından etkilenmez. */

.bn-wrap {
  --bn-navy: #0b1b33;
  --bn-red: #dc2626;
  --bn-red-d: #b91c1c;
  --bn-text: #0f1f38;
  --bn-muted: #64748b;
  --bn-line: #e4e8ef;
  --bn-soft: #f4f6fa;
  --bn-h: 72px;
}
.sticky-top-wrapper { position: sticky; top: 0; z-index: 1030; overflow: visible; }

/* ---------- Duyuru şeridi ---------- */
.as-ticker {
  display: flex; align-items: stretch; height: 36px;
  background: #06101f; color: #fff; overflow: hidden; position: relative; z-index: 1001;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.as-ticker__label {
  flex-shrink: 0; display: inline-flex; align-items: center; padding: 0 16px;
  background: #0a1628; color: #ff8a00; font-size: .68rem; font-weight: 800; letter-spacing: .14em;
  text-decoration: none; border-right: 1px solid rgba(255,255,255,.08); z-index: 2;
}
.as-ticker__label:hover { color: #ffb347; }
.as-ticker__view { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.as-ticker__track { display: flex; align-items: center; width: max-content; height: 100%; animation: asTicker 42s linear infinite; }
.as-ticker:hover .as-ticker__track { animation-play-state: paused; }
.as-ticker__item { white-space: nowrap; padding: 0 8px 0 14px; font-size: .78rem; font-weight: 700; text-decoration: none; letter-spacing: .01em; }
.as-ticker__item:hover { text-decoration: underline; }
.as-ticker__dot { width: 5px; height: 5px; border-radius: 50%; background: #ff8a00; flex-shrink: 0; margin-left: 18px; }
@keyframes asTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Üst çubuk ---------- */
.bn-nav {
  position: relative; z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--bn-line);
  transition: box-shadow .2s ease;
}
.bn-wrap.is-scrolled .bn-nav { box-shadow: 0 6px 24px rgba(11, 27, 51, .08); }
.bn-nav__inner {
  max-width: 1320px; margin: 0 auto; padding: 0 12px;   /* sayfa içeriğindeki .container ile aynı hizada */
  height: var(--bn-h);
  display: flex; align-items: center; gap: 12px;
}
.bn-brand { flex-shrink: 0; display: inline-flex; align-items: center; }
.bn-brand img { height: 50px; width: auto; max-width: 140px; object-fit: contain; display: block; }

.bn-menu { flex: 1; min-width: 0; display: flex; justify-content: center; }
.bn-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.bn-item { position: relative; display: flex; align-items: center; }

.bn-link {
  position: relative; display: inline-flex; align-items: center;
  height: 44px; padding: 0 10px;
  font-size: .9rem; font-weight: 650; letter-spacing: -.005em; white-space: nowrap;
  color: var(--bn-text); text-decoration: none; border-radius: 10px;
  transition: color .15s, background-color .15s;
}
.bn-item.has-sub > .bn-link { padding-right: 4px; }
.bn-link:hover, .bn-item.is-open > .bn-link { color: var(--bn-navy); background: var(--bn-soft); }
.bn-link::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px;
  border-radius: 2px; background: var(--bn-red); transform: scaleX(0); transition: transform .2s ease;
}
.bn-item.is-active > .bn-link { color: var(--bn-red); }
.bn-item.is-active > .bn-link::after { transform: scaleX(1); }
.bn-item.has-sub.is-active > .bn-link::after { right: 4px; }

.bn-caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 44px; margin-left: -2px; padding: 0;
  border: 0; background: none; color: #94a3b8; cursor: pointer; border-radius: 8px;
  font-size: .7rem;
}
.bn-caret i { transition: transform .2s ease; }
.bn-item.is-open > .bn-caret, .bn-item:hover > .bn-caret { color: var(--bn-navy); }
.bn-item.is-open > .bn-caret i { transform: rotate(180deg); }
.bn-caret:focus-visible, .bn-link:focus-visible, .bn-row:focus-visible { outline: 2px solid var(--bn-navy); outline-offset: 2px; }

/* ---------- Açılır panel ---------- */
.bn-panel {
  position: absolute; top: 100%; left: -8px; z-index: 1050;
  min-width: 320px; padding-top: 12px;          /* imleç geçiş köprüsü */
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.bn-panel > * { position: relative; }
.bn-panel::before {
  content: ""; position: absolute; inset: 12px 0 0 0;
  background: #fff; border: 1px solid var(--bn-line); border-radius: 16px;
  box-shadow: 0 24px 56px rgba(11, 27, 51, .16), 0 2px 6px rgba(11, 27, 51, .05);
}
.bn-item--end .bn-panel { left: auto; right: -8px; }
.bn-item.is-open > .bn-panel {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .16s ease, transform .16s ease, visibility 0s;
}
/* Fare ile açma site-nav.js'te (gecikmeli, panel arası geçişte kapanmaz).
   JS yüklenmezse yedek olarak saf CSS hover çalışır. */
@media (min-width: 1200px) and (hover: hover) {
  .bn-wrap:not(.bn-js) .bn-item.has-sub:hover > .bn-panel {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .16s ease, transform .16s ease, visibility 0s;
  }
  .bn-wrap:not(.bn-js) .bn-item.has-sub:hover > .bn-link { background: var(--bn-soft); }
}
/* Masaüstünde menü öğeleri çubuğun tüm yüksekliğini kaplar: başlıktan panele inerken boşluk kalmaz */
@media (min-width: 1200px) {
  .bn-menu { align-self: stretch; }
  .bn-list, .bn-item { height: 100%; }
  .bn-panel { padding-top: 6px; }
  .bn-panel::before { inset: 6px 0 0 0; }
}

.bn-rows { list-style: none; margin: 0; padding: 8px; }
.bn-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 11px; text-decoration: none; color: var(--bn-text);
  transition: background-color .12s;
}
.bn-row:hover, .bn-row[aria-current] { background: var(--bn-soft); color: var(--bn-text); }
.bn-ico {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bn-soft); color: var(--bn-navy); font-size: 1.02rem;
  border: 1px solid var(--bn-line);
  transition: background-color .12s, color .12s, border-color .12s;
}
.bn-row:hover .bn-ico, .bn-row[aria-current] .bn-ico, .bn-mega__head:hover .bn-ico { background: #fff1f1; color: var(--bn-red); border-color: #fecaca; }
.bn-row__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.bn-row__t b { font-size: .9rem; font-weight: 650; }
.bn-row__t small { font-size: .76rem; color: var(--bn-muted); font-weight: 500; margin-top: 1px; }
.bn-row[aria-current] .bn-row__t b { color: var(--bn-red); }

/* Çözümlerimiz: üç sütunlu geniş panel, doğrudan başlığın altından başlar */
.bn-panel--mega { left: -8px; width: min(820px, calc(100vw - 40px)); }
.bn-mega { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; padding: 14px 14px 6px; }
.bn-mega__col { padding: 4px; min-width: 0; }
.bn-mega__col + .bn-mega__col { border-left: 1px solid var(--bn-line); padding-left: 14px; }
.bn-mega__head {
  display: flex; align-items: center; gap: 11px; padding: 6px 6px 12px; margin-bottom: 4px;
  text-decoration: none; color: var(--bn-text); border-bottom: 1px dashed var(--bn-line);
}
.bn-mega__head > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.bn-mega__head b { font-size: .95rem; font-weight: 750; }
.bn-mega__head small { font-size: .74rem; color: var(--bn-muted); font-weight: 500; }
.bn-mega__head:hover b, .bn-mega__head[aria-current] b { color: var(--bn-red); }
.bn-mega__list { list-style: none; margin: 0; padding: 0; }
.bn-mega__list--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4px; }
.bn-mega__list a {
  display: block; padding: 7px 8px; border-radius: 8px;
  font-size: .86rem; font-weight: 600; color: #334155; text-decoration: none; line-height: 1.25;
}
.bn-mega__list a small { display: block; font-size: .73rem; color: var(--bn-muted); font-weight: 500; margin-top: 1px; }
.bn-mega__list a:hover { background: var(--bn-soft); color: var(--bn-red); }
.bn-mega__list a[aria-current] { color: var(--bn-red); }
.bn-mega__list .bn-more { color: var(--bn-red); font-weight: 700; }
.bn-mega__list--2 li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.bn-mega__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 6px 14px 14px; padding: 11px 14px; border-radius: 12px;
  background: var(--bn-soft); font-size: .82rem; color: var(--bn-muted); font-weight: 500;
}
.bn-mega__foot i { color: var(--bn-navy); margin-right: 4px; }
.bn-mega__foot a { color: var(--bn-red); font-weight: 700; text-decoration: none; white-space: nowrap; }
.bn-mega__foot a:hover { text-decoration: underline; }

/* ---------- Sağ araçlar ---------- */
.bn-tools { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.bn-icon {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--bn-line); color: var(--bn-navy); text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.bn-icon:hover { background: var(--bn-navy); border-color: var(--bn-navy); color: #fff; }
.bn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  font: inherit; font-size: .84rem; font-weight: 700; letter-spacing: .01em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.bn-btn--line { background: #fff; color: var(--bn-navy); border: 1px solid #cfd6e1; }
.bn-btn--line:hover { border-color: var(--bn-navy); background: var(--bn-navy); color: #fff; }
.bn-btn--red { background: var(--bn-red); color: #fff; border: 1px solid var(--bn-red); box-shadow: 0 4px 14px rgba(220, 38, 38, .22); }
.bn-btn--red:hover { background: var(--bn-red-d); border-color: var(--bn-red-d); color: #fff; }
.bn-btn i { font-size: 1rem; }

.bn-burger {
  display: none; width: 44px; height: 44px; padding: 0 11px; border-radius: 10px;
  border: 1px solid #cfd6e1; background: #fff; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.bn-burger span { display: block; height: 2px; border-radius: 2px; background: var(--bn-navy); transition: transform .2s ease, opacity .2s ease; }
.bn-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bn-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bn-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.bn-drawer-foot { display: none; }

/* Orta genişlikte sıkıştır (8 başlık tek satıra sığsın) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .bn-nav__inner { max-width: none; gap: 10px; padding: 0 14px; }
  .bn-brand img { height: 44px; max-width: 120px; }
  .bn-link { padding: 0 9px; font-size: .855rem; }
  .bn-item.has-sub > .bn-link { padding-right: 2px; }
  .bn-caret { width: 18px; }
  .bn-btn { padding: 0 12px; }
  .bn-icon { width: 38px; height: 38px; }
}

/* ---------- Mobil / tablet: tam ekran akordeon ---------- */
@media (max-width: 1199.98px) {
  .bn-wrap { --bn-h: 64px; }
  .bn-nav__inner { padding: 0 16px; gap: 10px; }
  .bn-brand img { height: 44px; max-width: 124px; }
  .bn-tools { margin-left: auto; }
  .bn-burger { display: inline-flex; }

  .bn-menu {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--bn-top, 100px);
    z-index: 1040; display: block;
    background: #fff; border-top: 1px solid var(--bn-line);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 6px 16px calc(24px + env(safe-area-inset-bottom));
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .bn-wrap.is-menu-open .bn-menu {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
  }
  .bn-list { flex-direction: column; align-items: stretch; gap: 0; max-width: 640px; margin: 0 auto; }
  .bn-item { flex-wrap: wrap; border-bottom: 1px solid var(--bn-line); }
  .bn-link {
    flex: 1; height: 54px; padding: 0 4px; border-radius: 0;
    font-size: 1rem; font-weight: 650; background: none !important;
  }
  .bn-item.has-sub > .bn-link { padding-right: 4px; }
  .bn-link::after { display: none; }
  .bn-item.is-active > .bn-link { color: var(--bn-red); }
  .bn-item.is-active > .bn-link::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bn-red); margin-right: 10px; flex-shrink: 0;
  }
  .bn-caret {
    width: 44px; height: 54px; margin: 0; font-size: .85rem; color: var(--bn-muted);
  }
  .bn-item.is-open > .bn-link { color: var(--bn-navy); }

  .bn-panel, .bn-panel--mega {
    position: static; width: 100%; min-width: 0; padding: 0 0 10px;
    opacity: 1; visibility: visible; transform: none !important; transition: none;
    display: none;
  }
  .bn-panel::before { display: none; }
  .bn-item.is-open > .bn-panel { display: block; }

  .bn-rows { padding: 0; }
  .bn-row { padding: 8px 4px; border-radius: 10px; }
  .bn-ico { width: 34px; height: 34px; font-size: .95rem; }

  .bn-mega { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .bn-mega__col { padding: 0 0 6px; }
  .bn-mega__col + .bn-mega__col { border-left: 0; padding-left: 0; border-top: 1px dashed var(--bn-line); padding-top: 6px; }
  .bn-mega__head { padding: 8px 4px; border-bottom: 0; margin: 0; }
  .bn-mega__list, .bn-mega__list--2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 6px; padding-left: 47px; }
  .bn-mega__list a { padding: 8px 9px; font-size: .86rem; background: var(--bn-soft); height: 100%; overflow-wrap: anywhere; }
  .bn-mega__list a small { display: none; }
  .bn-mega__foot { display: none; }

  .bn-drawer-foot {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    max-width: 640px; margin: 18px auto 0;
  }
  .bn-drawer-foot .bn-btn { height: 48px; font-size: .92rem; }
  .bn-drawer-tel {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; border-radius: 10px; background: var(--bn-soft);
    color: var(--bn-navy); font-weight: 700; text-decoration: none;
  }
  body.bn-lock { overflow: hidden; }
  /* Menü açıkken yüzen düğmeler menünün üstüne binmesin */
  body.bn-lock [data-bcc-open], body.bn-lock .bcc-teaser, body.bn-lock .nx-fab, body.bn-lock .grecaptcha-badge { visibility: hidden !important; }
}
@media (max-width: 575.98px) {
  .bn-hide-sm { display: none; }
  .bn-tools { gap: 6px; }
  .bn-btn { padding: 0 12px; }
  .bn-icon { width: 40px; height: 40px; }
}
@media (max-width: 379.98px) {
  .bn-hide-xs { display: none; }
  .bn-tools .bn-btn--red { width: 40px; padding: 0; }
  .bn-mega__list, .bn-mega__list--2 { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .as-ticker__track { animation: none; }
  .bn-panel, .bn-menu, .bn-link::after, .bn-caret i, .bn-burger span { transition: none !important; }
}

/* ---------- Eski sayfalarla uyum (önceki başlıktan gelen genel kurallar) ---------- */
.dropdown-menu {
  border-radius: 16px !important; margin-top: 10px !important;
  border: 1.5px solid #0b1b33 !important; box-shadow: 0 16px 40px rgba(11, 27, 51, .12) !important;
  background: #fff !important; opacity: 1 !important;
}
.dropdown-item { border-radius: 8px; padding: 8px 16px; font-weight: 500; color: #0b1b33; transition: .15s; font-size: .9rem; }
.dropdown-item:hover { background: #f4f6f8; color: #0b1b33; }
.dropdown-item.active-item { background: #fff5f5; color: #dc2626; font-weight: 700; }
.nav-link { font-weight: 650; color: #0b1b33; margin: 0 2px; padding: 8px 12px !important; transition: .15s; font-size: .9rem; border-radius: 999px; }
.nav-link:hover { color: #0b1b33; background: #f4f6f8; }
.nav-link.active { color: #dc2626; font-weight: 800; }
.topnav-login-btn { background: #dc2626 !important; border: none !important; color: #fff !important; }
.topnav-login-btn:hover, .topnav-login-btn:focus { background: #b91c1c !important; color: #fff !important; }
