/* Hizmet sayfası, görselli düzen (services/show.blade.php, layout=gallery). Tüm kurallar #bs altında; site.css değişkenlerini kullanır. */
#bs { --ink: var(--dark, #2B2A29); --mut: var(--soft, #74726F); }
#bs .bs-hero { padding-block: clamp(28px, 5vw, 96px) clamp(32px, 5vw, 80px); }
#bs .bs-kick { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); }
#bs .bs-hero h1 { margin: .35em 0 0; font-family: var(--font-head, "Raleway", sans-serif); font-weight: 300; font-size: clamp(44px, 7.4vw, 128px); line-height: .98; letter-spacing: -.03em; }
#bs .bs-lead { max-width: 34ch; margin-top: clamp(20px, 2.4vw, 40px); font-size: clamp(19px, 1.7vw, 28px); line-height: 1.4; font-weight: 300; color: var(--ink); }
#bs .bs-hero-img { margin-top: clamp(36px, 5vw, 80px); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; }
#bs .bs-hero-img img, #bs .bs-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* süreç: solda sabit görsel, sağda kayan adımlar */
#bs .bs-flow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); padding-block: clamp(48px, 7vw, 120px); border-top: 1px solid var(--line, #E7E9F0); }
#bs .bs-stick { position: sticky; top: 12vh; height: 76vh; overflow: hidden; border-radius: 2px; background: #f3f2f0; }
#bs .bs-stick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 1.6s cubic-bezier(.2,.7,.2,1); }
#bs .bs-stick img.on { opacity: 1; transform: scale(1); }
#bs .bs-steps h2 { font-family: var(--font-head, "Raleway", sans-serif); font-weight: 300; font-size: clamp(30px, 3vw, 52px); letter-spacing: -.02em; line-height: 1.05; }
#bs .bs-steps > p { margin-top: 1em; max-width: 40ch; color: var(--mut); font-size: clamp(16px, 1.15vw, 19px); line-height: 1.6; }
#bs .bs-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-block: 6vh; opacity: .28; transition: opacity .6s ease; }
#bs .bs-step.on { opacity: 1; }
#bs .bs-step small { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
#bs .bs-step h3 { margin-top: .5em; font-family: var(--font-head, "Raleway", sans-serif); font-weight: 300; font-size: clamp(28px, 2.6vw, 46px); letter-spacing: -.02em; line-height: 1.08; }
#bs .bs-step p { margin-top: .9em; max-width: 42ch; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.6; color: var(--ink); }
#bs .bs-step .bs-pic { display: none; }

/* kapanış cümlesi */
#bs .bs-close { padding-block: clamp(48px, 7vw, 120px); border-top: 1px solid var(--line, #E7E9F0); }
#bs .bs-close p { max-width: 24ch; font-family: var(--font-head, "Raleway", sans-serif); font-weight: 300; font-size: clamp(30px, 3.8vw, 64px); line-height: 1.12; letter-spacing: -.02em; }

/* hizmetler listesi (services/index.blade.php): aynı düzen, adımlar yerine hizmetler */
#bs.bs-index .bs-hero { padding-bottom: clamp(40px, 5vw, 88px); }
#bs.bs-index .bs-lead { max-width: 40ch; }

#bs.bs-index .bs-flow { border-top: 0; padding-top: 0; }
/* perde geçişi: yeni görsel alttan açılır, önceki altında kalır */
#bs.bs-index .bs-stick img { opacity: 1; z-index: 0; clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1s cubic-bezier(.7,0,.2,1), transform 1.6s cubic-bezier(.2,.7,.2,1); }
#bs.bs-index .bs-stick img.was { z-index: 1; clip-path: inset(0); transform: scale(1); transition: none; }
#bs.bs-index .bs-stick img.on { z-index: 2; clip-path: inset(0); transform: scale(1); }
#bs .bs-count { position: absolute; z-index: 3; left: clamp(16px, 2vw, 28px); bottom: clamp(14px, 1.8vw, 24px); display: flex; align-items: baseline; gap: 10px; color: #fff; text-shadow: 0 1px 18px rgba(0,0,0,.35); font-family: var(--font-head, "Raleway", sans-serif); font-weight: 200; pointer-events: none; }
#bs .bs-count .bs-now { font-size: clamp(56px, 6vw, 104px); line-height: .9; letter-spacing: -.04em; }
#bs .bs-count span + span { font-size: 15px; letter-spacing: .12em; font-weight: 400; }

#bs.bs-index .bs-step { min-height: 80vh; }
#bs.bs-index .bs-step > * { transform: translateY(22px); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
#bs.bs-index .bs-step.on > * { transform: none; }
#bs.bs-index .bs-step.on > :nth-child(2) { transition-delay: .04s; } #bs.bs-index .bs-step.on > :nth-child(3) { transition-delay: .08s; } #bs.bs-index .bs-step.on > :nth-child(4) { transition-delay: .12s; } #bs.bs-index .bs-step.on > :nth-child(n+5) { transition-delay: .16s; }
#bs.bs-index .bs-step h2 { margin-top: .4em; font-family: var(--font-head, "Raleway", sans-serif); font-weight: 300; font-size: clamp(36px, 3.6vw, 64px); letter-spacing: -.025em; line-height: 1.02; }
#bs.bs-index .bs-step h2 a { color: inherit; text-decoration: none; }
#bs.bs-index .bs-step h2 a:hover { color: var(--blue); }
#bs.bs-index .bs-keys { margin-top: 1.1em; font-size: 14px; line-height: 1.6; letter-spacing: .02em; color: var(--mut); }
#bs.bs-index .bs-go { margin-top: 1.4em; }
#bs .bs-work { margin-top: clamp(24px, 2.4vw, 36px); display: grid; grid-template-columns: repeat(3, minmax(0, 120px)); gap: 14px; }
#bs .bs-work span { grid-column: 1 / -1; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
#bs .bs-work a { display: grid; gap: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
#bs .bs-work img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; display: block; border-radius: 2px; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
#bs .bs-work a:hover img { transform: translateY(-4px); }
#bs .bs-work a:hover { color: var(--blue); }
#bs .bs-work b { font-weight: 400; }

/* çalışma şekli: dört sütun; göründüğünde çizgi dolar, adımlar sırayla gelir (dar ekran) */
#bs .bs-process { padding-block: clamp(48px, 7vw, 120px) clamp(56px, 8vw, 140px); border-top: 1px solid var(--line, #E7E9F0); }
#bs .bs-process h2 { font-family: var(--font-head, "Raleway", sans-serif); font-weight: 300; font-size: clamp(30px, 3vw, 52px); letter-spacing: -.02em; line-height: 1.05; }
#bs .bs-process ol { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 56px); margin: clamp(28px, 3.4vw, 56px) 0 0; padding: 26px 0 0; list-style: none; }
#bs .bs-process ol::before, #bs .bs-process ol::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line, #E7E9F0); }
#bs .bs-process ol::after { height: 2px; top: -.5px; background: var(--blue); transform-origin: left; transform: scaleX(1); }
#bs .bs-process li { position: relative; }
#bs .bs-process li::before { content: ""; position: absolute; top: -31px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
#bs .bs-process small { font-size: 13px; letter-spacing: .14em; color: var(--mut); }
#bs .bs-process h3 { margin-top: .5em; font-family: var(--font-head, "Raleway", sans-serif); font-weight: 300; font-size: clamp(24px, 2.2vw, 36px); letter-spacing: -.02em; line-height: 1.1; }
#bs .bs-process p { margin-top: .7em; max-width: 26ch; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.6; color: var(--ink); }
#bs .bs-process.anim ol::after { transform: scaleX(0); transition: transform 1.8s cubic-bezier(.6,0,.2,1); }
#bs .bs-process.anim li { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(.25s + var(--i, 0) * .32s); }
#bs .bs-process.anim li::before { transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(.25s + var(--i, 0) * .32s); }
#bs .bs-process.in ol::after { transform: scaleX(1); }
#bs .bs-process.in li { opacity: 1; transform: none; }
#bs .bs-process.in li::before { transform: scale(1); }
/* masaüstü, adımlı hâl (svc-gallery.js .pin ekler): bölüm ekrana sabitlenir, kaydırdıkça çizgi bir sonraki adıma dolar */
#bs .bs-process.pin { height: calc(100vh + (var(--n, 4) - 1) * 35vh); padding-block: 0; }
#bs .bs-process.pin .bs-proc-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
#bs .bs-process.pin ol::after { transform: scaleX(var(--f, 0)); transition: transform .45s cubic-bezier(.6,0,.2,1); }
#bs .bs-process.pin li { opacity: .2; transform: translateY(14px); transition: opacity .3s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
#bs .bs-process.pin li::before { transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
#bs .bs-process.pin li.done { opacity: .45; transform: none; }
#bs .bs-process.pin li.on { opacity: 1; transform: none; }
#bs .bs-process.pin li.done::before, #bs .bs-process.pin li.on::before { transform: scale(1); }

/* kapanış bandı (ana sayfadaki .hello) */
.bs-hello .bs-hello-btn { margin-top: clamp(14px, 2vw, 28px); }

@media (max-width: 860px) {
  #bs .bs-flow { grid-template-columns: 1fr; }
  #bs .bs-stick { display: none; }
  #bs .bs-step { min-height: 0; opacity: 1; padding-block: 0 48px; }
  #bs .bs-step .bs-pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 20px; }
  #bs.bs-index .bs-step { min-height: 0; padding-bottom: 72px; }
  #bs.bs-index .bs-step > * { transform: none; }
  #bs.bs-index .bs-step .bs-pic { aspect-ratio: 4 / 5; margin-bottom: 24px; }
  #bs.bs-index .bs-step h2 { font-size: clamp(40px, 11vw, 56px); }
  #bs .bs-process ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { #bs .bs-process ol { grid-template-columns: 1fr; padding-left: 26px; } #bs .bs-process ol::before, #bs .bs-process ol::after { right: auto; bottom: 0; width: 1px; height: auto; } #bs .bs-process ol::after { width: 2px; transform-origin: top; } #bs .bs-process.anim ol::after { transform: scaleY(0); } #bs .bs-process.in ol::after { transform: scaleY(1); } #bs .bs-process li::before { top: 6px; left: -30px; } }
@media (prefers-reduced-motion: reduce) { #bs .bs-stick img, #bs.bs-index .bs-stick img { transition: none; transform: none; } #bs .bs-step, #bs.bs-index .bs-step > *, #bs .bs-process.anim li, #bs .bs-process.anim li::before, #bs .bs-process.anim ol::after { transition: none; transform: none; } #bs .bs-process.pin li, #bs .bs-process.pin li::before, #bs .bs-process.pin ol::after { transition: none; } }
