/* Yılmaz & Biricik Legal — temel stiller (eski helmet <style> bloğundan taşındı) */
* { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x:clip → yatay taşmayı keser ama position:sticky'yi bozmaz (hidden bozuyordu) */
html, body { overflow-x: clip; max-width: 100%; }

/* Sayfa içi (#anchor) linklerde yumuşak kaydırma + sabit menü altında kalmasın */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: 'Inter Tight', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #101828;
  background: #fff;
}
::selection { background: #c9d6ff; }
a { text-decoration: none; color: inherit; }

@keyframes ybfloat  { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }
@keyframes ybfloat2 { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-9px);} }

img { max-width: 100%; }

/* Zengin metin içeriği (admin HTML: hizmet/vaka/blog/yasal gövde) — reset'in sildiği aralıkları geri verir */
.yb-rich > *:first-child { margin-top: 0; }
.yb-rich p { margin: 0 0 18px; }
.yb-rich h2 { font-size: 27px; font-weight: 800; letter-spacing: -.6px; color: #0e1836; margin: 34px 0 12px; line-height: 1.2; }
.yb-rich h3 { font-size: 20px; font-weight: 700; letter-spacing: -.3px; color: #0e1836; margin: 28px 0 10px; }
.yb-rich h4 { font-size: 17px; font-weight: 700; color: #0e1836; margin: 22px 0 8px; }
.yb-rich ul, .yb-rich ol { margin: 0 0 18px; padding-left: 22px; }
.yb-rich li { margin-bottom: 9px; }
.yb-rich a { color: var(--yb-accent, #2E5BEA); font-weight: 600; }
.yb-rich a:hover { text-decoration: underline; }
.yb-rich blockquote { margin: 0 0 20px; padding: 6px 0 6px 20px; border-left: 3px solid var(--yb-accent, #2E5BEA); color: #4b556c; }
.yb-rich img { border-radius: 12px; margin: 8px 0 20px; }
.yb-rich strong { color: #0e1836; }

/* ===== Nav hover efektleri ===== */
.yb-nav-menu a { position: relative; transition: color .18s ease; }
.yb-nav-menu a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  background: var(--yb-accent, #2E5BEA); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .24s cubic-bezier(.4,0,.2,1);
}
.yb-nav-menu a:hover { color: #0e1836; }
.yb-nav-menu a:hover::after { transform: scaleX(1); }

/* CTA butonu: hafif yükselme + gölge */
.yb-cta-btn { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.yb-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(46,91,234,.7); filter: brightness(1.05); }

/* Başlık gradyanı (lacivert → mavi) — hero H1'lerde kullanılır */
.yb-grad-title {
  background: linear-gradient(96deg, #0e1836 0%, #20337a 48%, #2E5BEA 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
}

/* Hizmet kartları: hover'da sol kenarda dikey vurgu çubuğu (bkz. tasarım) */
.yb-svc-card::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 4px;
  background: var(--yb-accent, #2E5BEA);
  border-radius: 18px 0 0 18px;
  transform: scaleY(0); transform-origin: top;
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.yb-svc-card:hover { border-color: color-mix(in srgb, var(--yb-accent, #2E5BEA) 35%, #ebedf4); }
.yb-svc-card:hover::before { transform: scaleY(1); }

/* ===== Alternatif: tam ekran biriken paneller (services-stack) ===== */
.yb-stack2 {
  position: relative; --gap: 56px; --u: 1vh; --navh: 78px;
  --s2-ink: #14181a; --s2-muted: #5c6266; --s2-line: #e6e9f4;
  --s2-fallback: linear-gradient(90deg, #141f47, #2E5BEA);
}
@supports (height: 1svh) { .yb-stack2 { --u: 1svh; } }

.yb-panel {
  position: sticky;
  top: calc(var(--navh) + var(--i) * var(--gap));
  height: calc(100vh - var(--navh) - var(--i) * var(--gap));
  z-index: calc(var(--i) + 1);
  overflow: hidden; isolation: isolate;
  background: #0e1836;
}
@supports (height: 100svh) { .yb-panel { height: calc(100svh - var(--navh) - var(--i) * var(--gap)); } }

/* Fotoğraf + panelin kendi bar rengiyle (mavi/mor) tonlama */
.yb-panel-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; background-color: #0e1836; filter: saturate(.85) brightness(.92); }
.yb-panel-veil { position: absolute; inset: 0; z-index: 1; background: var(--pbar, var(--s2-fallback)); mix-blend-mode: multiply; opacity: .9; }
/* Başlığın okunması için sol-alta yumuşak koyulaştırma */
.yb-panel-inner::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(75deg, rgba(8,12,30,.55) 0%, rgba(8,12,30,.15) 42%, transparent 70%); }

.yb-panel-label {
  position: absolute; top: 0; left: 0; right: 0; height: var(--gap); z-index: 6;
  display: flex; align-items: center; justify-content: center;
  background: var(--pbar, var(--s2-fallback));
  color: #fff; font-size: clamp(10px, .82vw, 13px); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 0 16px;
}
.yb-panel-inner {
  position: relative; z-index: 3; height: 100%;
  padding: var(--gap) clamp(18px, 7vw, 90px) calc(var(--u) * 10);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.yb-panel-layout { position: relative; width: 100%; max-width: 1160px; margin: 0 auto; }
.yb-panel-title {
  position: relative; z-index: 2; margin: 0 0 clamp(10px, calc(var(--u) * 2), 26px);
  font-weight: 800; font-size: clamp(34px, 4.2vw, 82px); line-height: .98; letter-spacing: -.02em; color: #fff;
}
.yb-panel-cards {
  position: relative; z-index: 2; width: 76%; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff;
  min-height: clamp(200px, calc(var(--u) * 32), 380px);
}
.yb-panel-card {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(18px, 2.2vw, 36px); border-left: 1px solid var(--s2-line); overflow: hidden;
}
.yb-panel-card:first-child { border-left: 0; }
.yb-p-icon { width: clamp(22px, 2.2vw, 30px); height: clamp(22px, 2.2vw, 30px); color: #0e1112; stroke-width: 1.5; margin-bottom: clamp(20px, calc(var(--u) * 5), 56px); flex: none; }
.yb-panel-card h3 { font-weight: 700; font-size: clamp(14px, 1.2vw, 20px); line-height: 1.2; margin: 0 0 clamp(7px, calc(var(--u) * 1.2), 14px); color: var(--s2-ink); letter-spacing: -.2px; }
.yb-panel-card p { font-size: clamp(11.5px, .92vw, 14px); line-height: 1.5; color: var(--s2-muted); margin: 0; }
.yb-panel-portrait {
  position: absolute; z-index: 1; right: 0; bottom: calc(var(--u) * -3); margin: 0;
  width: clamp(190px, 26vw, 380px); height: clamp(260px, calc(var(--u) * 48), 560px);
  overflow: hidden; clip-path: polygon(17% 0, 100% 0, 83% 100%, 0 100%);
  background: #6f7f63; background-size: cover; background-position: center;
}
@media (max-width: 900px) {
  .yb-stack2 { --gap: clamp(30px, calc(var(--u) * 5), 46px); }
  .yb-panel-label { display: none; }
  .yb-panel-inner { justify-content: flex-start; padding: clamp(10px, calc(var(--u) * 1.6), 20px) clamp(16px, 5vw, 30px) calc(var(--u) * 7); }
  .yb-panel-layout { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
  .yb-panel-title { font-size: clamp(26px, calc(var(--u) * 5.2), 44px); margin-bottom: clamp(8px, calc(var(--u) * 1.8), 16px); }
  .yb-panel-cards { width: 100%; grid-template-columns: 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); flex: 1 1 auto; min-height: 0; }
  .yb-panel-card { justify-content: center; border-left: 0; border-top: 1px solid var(--s2-line); padding: 16px clamp(14px, 4.5vw, 24px); }
  .yb-panel-card:first-child { border-top: 0; }
  .yb-p-icon { width: 26px; height: 26px; margin-bottom: 12px; }
  .yb-panel-card h3 { font-size: 16.5px; margin-bottom: 5px; }
  .yb-panel-card p { font-size: 13.5px; line-height: 1.5; }
  .yb-panel-portrait { right: auto; left: 50%; transform: translateX(-46%); bottom: calc(var(--u) * -16); width: min(46%, 230px); height: calc(var(--u) * 22); }
}

/* ===== Vaka Çalışmaları: solda sabit başlık + sağda scroll'da biriken kartlar ===== */
.yb-cases-2col { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: stretch; }
.yb-cases-left { position: sticky; top: 110px; align-self: start; }
.yb-cases-right { display: flex; flex-direction: column; gap: 24px; }
.yb-case-card {
  position: sticky; top: var(--ct, 100px); display: block;
  background: #fff; border: 1px solid #ebedf4; border-radius: 20px; padding: 32px 30px;
  box-shadow: 0 -12px 40px -22px rgba(20,30,80,.3);
  transition: box-shadow .2s ease, transform .2s ease;
}
.yb-case-card:hover { box-shadow: 0 26px 50px -30px rgba(20,30,80,.42); }
@media (max-width: 900px) {
  .yb-cases-2col { grid-template-columns: 1fr; gap: 30px; }
  .yb-cases-left { position: static; }
  .yb-cases-right { gap: 16px; }
  .yb-case-card { position: static; box-shadow: 0 20px 40px -30px rgba(20,30,80,.3); }
}

/* ===== Yatay carousel (Vaka Çalışmaları) ===== */
.yb-carousel { position: relative; }
.yb-carousel-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 2px 8px; scrollbar-width: none; -ms-overflow-style: none;
}
.yb-carousel-track::-webkit-scrollbar { display: none; }
.yb-carousel-item { flex: 0 0 clamp(260px, 22%, 300px); scroll-snap-align: start; }
.yb-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid #e6e9f4; background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: #0e1836;
  box-shadow: 0 10px 26px -12px rgba(20,30,80,.4); transition: opacity .2s ease, transform .15s ease, background .15s ease;
}
.yb-carousel-btn:hover { background: #f4f6fb; }
.yb-carousel-btn.prev { left: -12px; }
.yb-carousel-btn.next { right: -12px; }
.yb-carousel-btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
  .yb-carousel-item { flex-basis: 80%; }
  .yb-carousel-btn { display: none; }
}

/* Dil değiştirici linkleri */
.yb-nav-cta a[href*="lang.php"] { transition: color .15s ease; }

/* =====================================================================
   MOBİL / DUYARLI (RESPONSIVE)
   Sayfalar satır-içi (inline) stil kullandığı için grid ve büyük değerler
   [style*="..."] öznitelik seçicileri + !important ile ezilir. Böylece
   sayfa dosyalarına dokunmadan tüm site mobil uyumlu olur.
   ===================================================================== */

/* ---- Tablet ve altı ---- */
@media (max-width: 900px) {
  /* Header navigasyonu: logo solda, CTA sağda, menü altta yatay kaydırmalı */
  .yb-nav-inner {
    flex-wrap: wrap !important;
    height: auto !important;
    padding: 12px 18px !important;
    gap: 10px 14px !important;
  }
  .yb-nav-cta { margin-left: auto; }
  .yb-nav-menu {
    order: 3;
    width: 100%;
    gap: 20px !important;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  /* Çok sütunlu grid'ler → 2 sütun */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* İki sütunlu içerik blokları → tek sütun */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1.05fr .95fr"],
  [style*="grid-template-columns:1.7fr 1fr 1fr 1fr 1fr"],
  [style*="grid-template-columns:220px 1fr"],
  [style*="grid-template-columns:1fr 300px"],
  [style*="grid-template-columns:.9fr 1.1fr"],
  [style*="grid-template-columns:.85fr 1.15fr"],
  [style*="grid-template-columns:.8fr 1.2fr"],
  [style*="grid-template-columns:1fr auto"] {
    grid-template-columns: 1fr !important;
  }

  /* Yatay kenar boşluklarını daralt (en sık kalıplar) */
  [style*="padding:0 40px"]   { padding-left: 20px !important; padding-right: 20px !important; }

  /* Büyük başlıkları küçült */
  [style*="font-size:76px"] { font-size: 40px !important; letter-spacing: -1.4px !important; }
  [style*="font-size:74px"] { font-size: 34px !important; letter-spacing: -1.2px !important; }
  [style*="font-size:62px"] { font-size: 36px !important; letter-spacing: -1.2px !important; }
  [style*="font-size:46px"],
  [style*="font-size:44px"] { font-size: 28px !important; letter-spacing: -.8px !important; }
  [style*="font-size:38px"],
  [style*="font-size:36px"] { font-size: 26px !important; }
}

/* ---- Telefon ---- */
@media (max-width: 600px) {
  /* Tüm çoklu grid'ler → tek sütun */
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Dikey padding'leri makul seviyeye çek */
  [style*="padding:120px 40px"] { padding: 64px 18px !important; }
  [style*="padding:110px 40px"] { padding: 56px 18px 12px !important; }
  [style*="padding:100px 40px"] { padding: 56px 18px !important; }
  [style*="padding:96px 40px"]  { padding: 52px 18px !important; }
  [style*="padding:90px 40px"]  { padding: 48px 18px 0 !important; }
  [style*="padding:84px 40px"]  { padding: 48px 18px !important; }
  [style*="padding:80px 40px"]  { padding: 44px 18px !important; }
  [style*="padding:76px 40px"]  { padding: 44px 18px 40px !important; }
  [style*="padding:74px 40px"]  { padding: 44px 20px !important; }
  [style*="padding:70px 40px"]  { padding: 40px 18px !important; }
  [style*="padding:66px 40px"]  { padding: 40px 18px 30px !important; }

  /* Hero ve büyük iç boşluklu kutular */
  [style*="padding:120px 40px"] { padding: 60px 18px !important; }
  [style*="padding:86px 40px"]  { padding: 44px 20px !important; }
  [style*="padding:52px 48px"]  { padding: 30px 22px !important; }

  /* Başlıklar biraz daha küçük */
  [style*="font-size:76px"] { font-size: 33px !important; }
  [style*="font-size:74px"] { font-size: 30px !important; }
  [style*="font-size:62px"] { font-size: 30px !important; }
  [style*="font-size:46px"],
  [style*="font-size:44px"] { font-size: 25px !important; }

  /* Uzmanlık (practices) blokları: sabit yüksekliği azalt, foto şeridini gizle */
  [style*="min-height:724px"] { min-height: 560px !important; }
  [style*="clip-path:polygon(15% 0,100% 0,100% 100%,42% 100%)"] { display: none !important; }
  [style*="padding-right:30%"] { padding-right: 0 !important; }

  /* Menü/istatistik şeritlerindeki dikey ayraçları yumuşat */
  [style*="border-right:1px solid #eef0f6"] { border-right: none !important; }
}
