/* K2B: sol menü ve site araması (assets/site-ek.js ile çalışır) */

/* Üst çubuktaki iki düğme */
.yan-ac, .ara-ac {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto;
  height: 40px; min-width: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  background: transparent; color: var(--ink); font: 600 14px var(--sans); cursor: pointer;
}
.yan-ac:hover, .ara-ac:hover { background: #e6e4de; }
.yan-ac svg, .ara-ac svg { width: 20px; height: 20px; }
.top .wrap > .yan-ac { margin-right: -8px; }
.ara-ac { margin-left: 4px; }
.ara-ac kbd { font: 600 11px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
/* Üst çubuk sadeleşir: Hakkımızda, Ekip ve İletişim sol menüde ve alt bilgide */
@media (min-width: 901px) {
  .nav a { white-space: nowrap; }
  .nav a[href$="#hakkimizda"], .nav a[href="ekip.html"], .nav a[href$="#iletisim"] { display: none; }
}
@media (min-width: 901px) and (max-width: 1100px) { .nav a[href$="#referanslar"] { display: none; } }
@media (max-width: 1260px) { .ara-ac span, .ara-ac kbd { display: none; } }
html.k-kilit .kb-fab { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: none !important; }   /* telefonda menünün tamamı sol menüde */
  .ara-ac { margin-left: auto; }
  .top .wrap > .yan-ac { margin-right: -4px; }
}

/* Ortak perde */
.k-perde { position: fixed; inset: 0; background: rgba(12, 14, 18, .45); z-index: 9100; opacity: 0; transition: opacity .2s; }
.k-perde.acik { opacity: 1; }
.k-perde[hidden], .yan[hidden], .ara-kutu[hidden] { display: none; }
html.k-kilit { overflow: hidden; }

/* Sol menü */
.yan {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 9101; width: min(440px, 92vw);
  background: var(--bg); box-shadow: 0 0 40px rgba(0, 0, 0, .25); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-102%); transition: transform .25s ease;
}
.yan.acik { transform: none; }
.yan-bas { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.yan-bas b { font: 700 12px var(--mono); letter-spacing: .08em; color: var(--brand); flex: 1; }
.yan-kapat { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.yan-kapat:hover { background: #e6e4de; }
.yan-ic { padding: 16px 20px 32px; }
.yan-ara { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); font: 500 15px var(--sans); cursor: pointer; text-align: left; }
.yan-ara svg { width: 18px; height: 18px; flex: 0 0 auto; }
.yan details { border-bottom: 1px solid var(--line); }
.yan summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 18px 2px; font-weight: 700; font-size: 18px; }
.yan summary::-webkit-details-marker { display: none; }
.yan summary small { font: 700 11px var(--mono); color: var(--muted); letter-spacing: .06em; margin-left: auto; margin-right: 12px; }
.yan summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--brand); width: 20px; text-align: center; }
.yan details[open] summary::after { content: "−"; }
.yan ul { list-style: none; margin: 0 0 16px; padding: 0; }
.yan li a { display: block; padding: 10px 12px; margin: 0 -12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.yan li a:hover, .yan li a:focus-visible { background: #e6e4de; }
.yan li a b { display: block; font-size: 16px; font-weight: 700; }
.yan li a span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.yan li a i { font-style: normal; font: 700 11px var(--mono); color: var(--brand); margin-right: 6px; }
.yan li.tum a { font-weight: 700; color: var(--brand); }
.yan-alt { margin-top: 24px; background: var(--room); color: #e6e8ec; border-radius: 14px; padding: 20px; font-size: 15px; }
.yan-alt b { display: block; font: 700 12px var(--mono); letter-spacing: .08em; color: #9aa0ab; margin-bottom: 10px; }
.yan-alt a { color: #fff; font-weight: 700; text-decoration: none; display: block; margin-bottom: 6px; }
.yan-alt .btn { margin-top: 10px; width: 100%; color: #fff; }

/* Arama penceresi */
.ara-kutu { position: fixed; inset: 0; z-index: 9102; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.ara-ic { width: min(680px, 100%); max-height: 78vh; display: flex; flex-direction: column; background: var(--surface); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: hidden; }
.ara-satir { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.ara-satir svg { width: 22px; height: 22px; color: var(--muted); flex: 0 0 auto; }
.ara-satir input { flex: 1; min-width: 0; height: 60px; border: 0; outline: 0; background: transparent; font: 500 18px var(--sans); color: var(--ink); }
.ara-satir input::-webkit-search-cancel-button { display: none; }
.ara-satir button { border: 1px solid var(--line); border-radius: 6px; background: transparent; font: 600 12px var(--mono); color: var(--muted); padding: 4px 8px; cursor: pointer; }
.ara-sonuc { overflow-y: auto; padding: 8px; }
.ara-sonuc a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.ara-sonuc a.secili, .ara-sonuc a:hover { background: #f0eef8; }
.ara-sonuc a small { display: block; font: 700 11px var(--mono); color: var(--brand); letter-spacing: .06em; }
.ara-sonuc a b { display: block; font-size: 16px; margin: 2px 0; }
.ara-sonuc a span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.ara-sonuc mark { background: #ffe9a8; color: inherit; border-radius: 2px; }
.ara-bos { padding: 16px 14px 20px; color: var(--muted); font-size: 15px; }
.ara-bos p { margin: 0 0 12px; }
.ara-cip { display: flex; flex-wrap: wrap; gap: 8px; }
.ara-cip button { border: 1px solid var(--line); border-radius: 999px; background: #f6f5f2; padding: 7px 14px; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }
.ara-cip button:hover { border-color: var(--brand); }
.ara-not { border-top: 1px solid var(--line); padding: 10px 16px; font-size: 13px; color: var(--muted); }
.ara-not a { font-weight: 700; }
@media (max-width: 600px) {
  .ara-kutu { padding: 0; }
  .ara-ic { max-height: 100vh; height: 100%; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .yan, .k-perde { transition: none; } }
@media print { .yan-ac, .ara-ac { display: none !important; } }
