/* ============================================================================
   MZ DOOR ana sayfa sahneleri (Aşama 6) — PLAN.md §4
   Sahne sırası ve teknikleri:
     gece      pin + kinetic + drift   (gergin)
     hizmetler pan (telefonda parmakla) (akıcı)
     neden     reveal (kepenk)         (sakin)
     süreç     cue + dolan ray         (netlik)
     sss       açılır liste            (dinlenme)
     kapanış   pin + inen kapı         (karar)
   ========================================================================== */

/* --gutter, --hairline, --section-pad: css/tokens.css */

/* Ortak başlık ölçeği (Big Shoulders Display) */
.night__line, .night__answer, .night__phone,
.svc__title, .svc__name,
.why__title, .why__big, .why__item h3,
.steps__title, .steps__item h3, .steps__num,
.faq__title, .close__title {
  font-family: var(--sc-font-display);
  font-weight: 700;
  letter-spacing: -0.005em;
}

/* ================================================================ GECE == */
.night__stage {
  display: flex;
  align-items: center;
  padding: var(--header-h) var(--gutter) 0;
}
/* Ay ışığı gibi soğuk, zayıf bir aydınlık. Sahneye özel; amber yok. */
.night__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 55% at 78% 30%, rgba(47, 95, 143, 0.20), transparent 70%);
}
.night__copy { position: relative; z-index: 2; max-width: 52rem; }
.night__line {
  margin: 0;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem);
  line-height: 1.04;
  color: var(--mz-ink-soft);
}
.night__answer {
  margin: 0.45em 0 0;
  font-size: clamp(3.4rem, 1.6rem + 6vw, 7.6rem);
  line-height: 0.92;
  color: var(--mz-ink);
}
.night__call { margin-top: clamp(1.5rem, 3vh, 2.5rem); }
.night__phones { display: flex; flex-wrap: wrap; gap: 0.25rem 2.5rem; }
.night__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: var(--tap);
  font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.7rem);
  color: var(--mz-ink);
  text-decoration: underline;
  text-decoration-color: rgba(242, 160, 44, 0.75);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
.night__phone::before {
  content: "";
  width: 0.62em;
  height: 0.62em;
  flex: none;
  background: var(--mz-amber);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/></svg>") center / contain no-repeat;
}
.night__note { margin: 0.6rem 0 0; color: var(--mz-ink-soft); font-size: 1rem; }

/* Yarıda kalmış kapı çizimi (yalnızca masaüstü) */
.night__door {
  position: absolute;
  z-index: 1;
  right: 7vw;
  bottom: 14vh;
  width: min(34vw, 520px);
  height: auto;
  fill: none;
  stroke: var(--mz-steel-lite);
  stroke-width: 2;
  stroke-linejoin: round;
}
.night__door .night__panels path { fill: rgba(47, 95, 143, 0.12); }
.night__door .night__gap { fill: #070B0F; stroke: none; }
.night__door .night__frame { stroke: rgba(79, 134, 191, 0.55); }

@media (max-width: 860px) {
  .night__door { display: none; }
  .night__phones { flex-direction: column; gap: 0; }
}

/* =========================================================== HİZMETLER == */
/* .svc__stage'e position YAZILMAZ: masaüstünde motor ona .sc-stage verir (sticky).
   Aynı ağırlıkta bir position kuralı sabitlemeyi sessizce bozar. */
.svc--swipe .svc__stage { position: relative; }
.svc__intro {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  top: calc(var(--header-h) + 9vh);
  width: min(28vw, 25rem);
}
.svc__title {
  margin: 0;
  font-size: clamp(2.8rem, 1.6rem + 3.2vw, 4.8rem);
  line-height: 0.95;
}
.svc__lede { margin: 1rem 0 0; color: var(--mz-ink-soft); max-width: 30ch; }

.svc__rail {
  position: absolute;
  z-index: 2;
  top: calc(var(--header-h) + 5vh);
  bottom: 7vh;
  left: 0;
  margin: 0;
  padding: 0 6vw 0 calc(var(--gutter) + min(28vw, 25rem) + 4vw);
  list-style: none;
  align-items: center;
  gap: 2vw;
}

.svc__card {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  height: 60vh;
  overflow: hidden;
  border-radius: 10px;
  background: #1A1E22;
  box-shadow: var(--sc-edge), var(--sc-e2);
}
.svc__card:nth-child(1) { width: 38vw; }
.svc__card:nth-child(2) { width: 27vw; height: 66vh; align-self: flex-start; }
.svc__card:nth-child(3) { width: 27vw; height: 66vh; align-self: flex-end; }
.svc__card:nth-child(4) { width: 34vw; }
.svc__card:nth-child(5),
.svc__card:nth-child(6) { width: 21vw; height: 48vh; align-self: flex-end; }
.svc__card:nth-child(7) { width: 25vw; height: 54vh; }

.svc__media { position: relative; flex: 1 1 auto; min-height: 0; }
.svc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc__body { position: relative; padding: 1.25rem 1.4rem 1.4rem; }
.svc__name { margin: 0; font-size: clamp(1.6rem, 1.2rem + 0.9vw, 2.2rem); line-height: 1; }
.svc__desc { margin: 0.5rem 0 0; color: var(--mz-ink-soft); font-size: 0.98rem; line-height: 1.5; }
.svc__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.4rem;
  color: var(--mz-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(242, 160, 44, 0.75);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

/* wide: fotoğraf üstte, metin altta */
.svc__card--wide .svc__media { flex-basis: 62%; }

/* tall: fotoğraf tüm kart, metin altta (koyu geçiş yalnızca metnin olduğu yerde) */
.svc__card--tall .svc__media { position: absolute; inset: 0; }
.svc__card--tall .svc__body {
  margin-top: auto;
  padding-top: 5rem;
  background: linear-gradient(0deg, rgba(20, 23, 26, 0.94) 0%, rgba(20, 23, 26, 0.78) 55%, transparent 100%);
}

/* icon: fotoğraf yok. Kapı paneli dokusu üstünde çizgi ikon. */
.svc__card--icon,
.svc__card--lit {
  justify-content: space-between;
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(25% - 1px), rgba(0, 0, 0, 0.25) calc(25% - 1px) 25%),
    linear-gradient(90deg, #2E343A, var(--mz-anthracite) 50%, #262B30);
}
.svc__icon { padding: 1.5rem 1.4rem 0; color: var(--mz-steel-lite); }
.svc__icon svg { width: 60px; height: 60px; display: block; }

/* lit: 7/24 servis. Köşesinde yanan sıcak ışık; diğerlerinden ayrışan tek kart. */
.svc__card--lit::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 55% at 22% 12%, rgba(242, 160, 44, 0.32), rgba(242, 160, 44, 0.06) 55%, transparent 75%);
}
.svc__card--lit .svc__icon { color: var(--mz-ink); }

/* ---- telefon ve hareketi azalt: parmakla kaydırılan şerit ---- */
.svc--swipe .svc__stage { padding: var(--section-pad) 0 calc(var(--section-pad) * 0.6); }
.svc--swipe .svc__intro { position: static; width: auto; padding: 0 var(--gutter); margin-bottom: 1.75rem; }
.svc--swipe .svc__rail {
  position: static;
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 0 var(--gutter) 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.svc--swipe .svc__rail::-webkit-scrollbar { display: none; }
.svc--swipe .svc__card {
  width: 80vw !important;
  max-width: 380px;
  height: auto !important;
  min-height: 430px;
  align-self: stretch !important;
  scroll-snap-align: start;
}
.svc--swipe .svc__card--wide .svc__media { flex: 0 0 230px; }
.svc--swipe .svc__card--tall { min-height: 430px; }
@media (min-width: 861px) {
  .svc--swipe .svc__card { width: 30vw !important; max-width: 420px; }
}

/* ============================================================== NEDEN == */
.why { padding: var(--section-pad) var(--gutter); }
.why__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.why__title { margin: 0; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem); line-height: 1; color: var(--mz-ink-soft); }
.why__big { display: flex; align-items: baseline; gap: 0.12em; margin: 1rem 0 0.25rem; line-height: 0.8; }
.why__num { font-size: clamp(9rem, 5rem + 12vw, 17rem); color: var(--mz-ink); }
.why__unit { font-size: clamp(3rem, 2rem + 3vw, 5.5rem); color: var(--mz-ink-soft); }
.why__caption { margin: 1.25rem 0 0; color: var(--mz-ink-soft); max-width: 30ch; font-size: 1.1rem; }

.why__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.why__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) 1fr;
  gap: 0.4rem 1.5rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--hairline);
}
.why__item h3 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); line-height: 1; }
.why__item p { margin: 0; color: var(--mz-ink-soft); }

/* Kepenk: maddeyi örten çıtalı perde, kaydırdıkça yukarı sarılır.
   --sc-p motorun bu sahneye yazdığı ilerleme; motor yoksa 1 (perde açık). */
.why__shutter {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, #1C2024 0 4px, transparent 4px),
    repeating-linear-gradient(180deg, #2B3035 0 9px, #22272B 9px 12px);
  clip-path: inset(0 0 clamp(0%, calc((var(--sc-p, 1) - var(--at)) * 500%), 100%) 0);
}

@media (max-width: 860px) {
  .why__inner { grid-template-columns: 1fr; }
  .why__item { grid-template-columns: 1fr; }
}

/* ============================================================== SÜREÇ == */
/* "Neden" ile arasındaki boşluk his kontrolünde kopukluk gibi okundu: üst boşluk yarıya indi */
.steps { padding: calc(var(--section-pad) * 0.45) var(--gutter) var(--section-pad); }
.steps__inner { max-width: 1200px; margin: 0 auto; }
.steps__title { margin: 0; font-size: clamp(2.6rem, 1.6rem + 3vw, 4.4rem); line-height: 0.95; }
.steps__list {
  position: relative;
  max-width: 44rem;
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
  padding: 0 0 0 4.25rem;
  list-style: none;
}
/* Ray: çelik mavisi hat; kaydırdıkça dolar */
.steps__rail {
  position: absolute;
  left: calc(1.25rem - 1px);
  top: 1.25rem;
  bottom: 2.5rem;
  width: 2px;
  background: rgba(47, 95, 143, 0.35);
}
.steps__fill {
  position: absolute;
  inset: 0;
  background: var(--mz-steel-lite);
  transform-origin: 50% 0;
  transform: scaleY(clamp(0, calc((var(--sc-p, 1) - 0.2) * 3), 1));
}
.steps__item { position: relative; padding-bottom: 2.4rem; }
.steps__item:last-child { padding-bottom: 0; }
.steps__num {
  position: absolute;
  left: -4.25rem;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--mz-night);
  box-shadow: inset 0 0 0 2px var(--mz-steel-lite);
  font-size: 1.25rem;
  line-height: 1;
}
.steps__item h3 { margin: 0; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.3rem); line-height: 1; }
.steps__item p { margin: 0.5rem 0 0; color: var(--mz-ink-soft); max-width: 46ch; }

/* ================================================================ SSS == */
.faq { padding: var(--section-pad) var(--gutter); }
.faq__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.faq__title { margin: 0; font-size: clamp(2.6rem, 1.6rem + 3vw, 4.4rem); line-height: 0.95; }
.faq__lede { margin: 1rem 0 0; color: var(--mz-ink-soft); max-width: 30ch; }
.faq__lede a, .faq__a a {
  color: var(--mz-ink);
  text-decoration-color: rgba(242, 160, 44, 0.75);
  text-decoration-thickness: 2px;
}
.faq__list { border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 64px;
  padding: 1rem 0;
  font-size: 1.12rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline-offset: 2px; }
.faq__icon { position: relative; flex: none; width: 16px; height: 16px; transition: transform var(--sc-d-base) var(--sc-ease-out); }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--mz-ink-soft);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a p { margin: 0; padding: 0 2.5rem 1.4rem 0; color: var(--mz-ink-soft); max-width: 62ch; }
.faq__item[open] .faq__a { animation: faq-in 260ms var(--sc-ease-out); }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .faq__inner { grid-template-columns: 1fr; }
}

/* ============================================================ KAPANIŞ == */
.close__stage { background: var(--mz-night); }
.close__door {
  position: absolute;
  inset: 0;
  --door-inset-x: 14%;
  --door-inset-top: calc(var(--header-h) + 5vh);
  --door-inset-bottom: 27%;
  --door-spill-height: 12%;
}
/* Kapı perdesi açıklığın üst %70'ini kaplar; kaydırdıkça yukarıdan iner.
   Son hâlinde alttaki %30'luk ışıklı boşluk butonu çerçeveler. */
.close__curtain {
  bottom: auto;
  height: 70%;
  perspective: none;
  --k: clamp(0, calc((var(--sc-p, 1) - 0.08) / 0.55), 1);
  transform: translate3d(0, calc(-101% * (1 - var(--k))), 0);
  will-change: transform;
}
.close__sign-panel { z-index: 1; }
.close__sign {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 22%;
  text-align: center;
}
.close__title { margin: 0; font-size: clamp(2.2rem, 1.3rem + 3vw, 4.4rem); line-height: 0.95; color: var(--mz-ink); }
.close__text { margin: 0.6rem 0 0; color: rgba(237, 234, 228, 0.78); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); }

.close__slot {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  display: grid;
  place-items: center;
}
.close__glow {
  top: 45%;
  height: 75%;
  left: 18%;
  right: 18%;
  opacity: 0.95;
}
.close__spill { opacity: 0.9; }
.btn--lg { min-height: 60px; padding: 0 2.25rem; font-size: 1.15rem; }

.close__floor {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 7%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.5rem;
}
.close__phones { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; }
.close__phones a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--sc-font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--mz-ink);
  text-decoration: none;
}

@media (max-width: 700px) {
  .close__door {
    --door-inset-x: 5%;
    --door-inset-top: calc(var(--header-h) + 3vh);
    /* alttaki arama çubuğu + WhatsApp ve telefonlar için yer */
    --door-inset-bottom: calc(var(--callbar-h, 0px) + 150px);
    --door-spill-height: 8%;
  }
  .close__curtain { height: 64%; }
  .close__slot { height: 36%; padding: 0 7%; }
  .close__slot .btn { width: 100%; }
  .close__sign { bottom: 12%; }
  .close__floor { bottom: calc(var(--callbar-h, 0px) + 18px); flex-direction: column; gap: 0.5rem; }
  .close__floor .btn { width: 100%; }
  .close__phones { justify-content: center; }
}

/* ===================================================== HAREKETİ AZALT == */
@media (prefers-reduced-motion: reduce) {
  .night [data-sc-cue], .close [data-sc-cue] { opacity: 1 !important; transform: none !important; }
  /* Kelime kelime beliren başlığın parçaları da hemen görünsün */
  .night .sc-split__i { opacity: 1 !important; transform: none !important; }
  .why__shutter { display: none; }
  .steps__fill { transform: none; }
  .close__curtain { --k: 1; }
  .faq__item[open] .faq__a { animation: none; }
  .faq__icon { transition: none; }
}
