/* =============================================================
 * work-detail.css — WORK DETAIL (398:488, joedtech) SIFIRDAN pixel-perfect.
 * Container 840px kolon (x=221-1061). Tüm font tasarımın sabit px'i (STRICT PX — clamp yok).
 * ============================================================= */

.work {
  --wd-col: 840px;
  --wd-heading: #161614;
  --wd-body: #5c5c58;
  --wd-border: #e5e5e3;
}
.work__wrap {
  width: var(--wd-col);
  max-width: calc(100% - 48px);
  margin-inline: auto;
  padding-block: 71px 96px;
}

/* ---- Prev / Next (399:674/675, 416:788/789): Manrope 14/20 #161614 ---- */
.work__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
}
.work__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--wd-heading);
  text-decoration: none;
}
.work__nav-link:hover {
  color: var(--c-primary);
}
.work__nav-prev .work__nav-arrow {
  transform: rotate(180deg);
}
.work__nav-arrow {
  font-size: 20px;
  line-height: 1;
}

/* ---- Kapak (399:673): 838×330. aspect-ratio ile oran korunur. ---- */
.work__cover {
  width: 100%;
  aspect-ratio: 838 / 330;
  border-radius: 2px;
  overflow: hidden;
  background: var(--c-surface);
}
.work__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Başlık (398:672): Lora SemiBold 30/36, kapağın ALTINDA, 2. satır mavi ---- */
.work__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 30px;
  line-height: 36px;
  color: var(--wd-heading);
  margin: 50px 0 0;
  max-width: 840px;
}
.work__title .accent-primary {
  color: var(--c-primary);
}

/* ---- Meta satırı (416:765): 5×168×52, sağ border (son hariç), label 14/20 + değer Lora 18/36 ---- */
.work__meta {
  display: flex;
  margin-top: 51px;
}
.work__meta-item {
  width: 168px;
  height: 52px;
  padding-left: 13px;
  box-sizing: border-box;
  border-right: 1px solid var(--wd-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.work__meta-item:first-child { padding-left: 0; }
.work__meta-item:last-child {
  border-right: 0;
}
.work__meta-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--wd-body);
}
.work__meta-value {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  line-height: 36px;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work__meta-pill {
  width: 146px;
  height: 25px;
  border-radius: 2px;
  overflow: hidden;
}
.work__meta-pill img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.work__meta-client .work__meta-pill:empty::before {
  content: attr(data-fallback);
}

/* ---- Ortak bölüm başlığı (Titles/H4: Lora Medium 22/30) ---- */
.work__h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 22px;
  line-height: 30px;
  color: var(--wd-heading);
  margin: 0 0 16px;
}

/* ---- Ortak metin (Body/Genel İçerik: Manrope 16/24) ---- */
.work__prose p,
.work__intro p,
.work__split-text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--wd-body);
  margin: 0 0 16px;
}
.work__prose p:last-child,
.work__intro p:last-child {
  margin-bottom: 0;
}
.work__prose h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  margin: 24px 0 12px;
  color: var(--wd-heading);
}
.work__prose ul {
  margin: 12px 0 16px;
  padding-left: 1.2em;
  list-style: disc;
}
.work__prose li {
  margin-bottom: 8px;
  color: var(--wd-body);
}
.work__prose strong,
.work__intro strong,
.work__split-text strong {
  color: var(--wd-heading);
  font-weight: 700;
}
.work__prose a {
  color: var(--c-primary);
}
.hl {
  color: var(--c-secondary);
  font-weight: 700;
}

/* ---- Giriş (intro, 2 paragraf): meta bitişinden 52px sonra ---- */
.work__intro {
  margin-top: 52px;
  max-width: 840px;
}

.work__section {
  margin-top: 52px;
}

/* ---- Öne Çıkan Sonuçlar (459:238): sol 389 + sağ 419×160, gap ~33 ---- */
.work__split {
  display: grid;
  grid-template-columns: 389px 419px;
  gap: 33px;
  align-items: start;
  justify-content: space-between;
}
/* image_results boşsa görsel kutusu render edilmez — metin tam genişlik kullanır. */
.work__split--no-media {
  grid-template-columns: 1fr;
  max-width: 840px;
}
.work__split-media {
  width: 419px;
  height: 160px;
  border-radius: 2px;
  overflow: hidden;
  background: #a7a7a7;
}
.work__split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Metrik kartları (432:884): 4×169×90 = 676px toplam blok, 839px container içinde ORTALI
   (x=302, container x=221 → sol/sağ boşluk 81/82px eşit). İçeride ikon SOLDA 34px (x=4) +
   değer/etiket sağında (x=47), YATAY dizilim, dikey ortalı, kart içinde SOL hizalı. */
.work__metrics {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  width: 100%;
}
.work__metric {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  min-height: 90px;
}
.work__metric-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
}
.work__metric-text {
  display: flex;
  flex-direction: column;
}
.work__metric-value {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: #000;
  margin-bottom: 2px;
}
.work__metric-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 19px;
  color: var(--wd-body);
}

/* ---- Bölüm içi geniş görsel (Müşteri Kim, 838×161) ---- */
.work__media {
  border-radius: 2px;
  overflow: hidden;
  background: #a7a7a7;
}
.work__media--wide {
  width: 100%;
  height: 161px;
  margin: 16px 0;
}
.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Kesişen Kavramlar (459:241): sol illüstrasyon 217×217 + sağ sütun 504 (gap 79) ---- */
.work__arch-grid {
  display: grid;
  grid-template-columns: 217px 504px;
  gap: 79px;
  align-items: start;
  justify-content: space-between;
}
.work__arch-figure {
  width: 217px;
  height: 217px;
  position: sticky;
  top: 96px;
}
.work__arch-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.work__arch-content .work__media--arch {
  width: 504px;
  height: 161px;
  margin: 24px 0;
  background: #a7a7a7;
}

/* ---- Showcase görseli (Frame 105: 839×496 açık gri, içinde 771×436 ortalı) ---- */
.work__showcase {
  width: 100%;
  height: 496px;
  margin-top: 52px;
  background: rgba(244, 244, 244, 0.3);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.work__showcase img {
  width: 771px;
  height: 436px;
  max-width: calc(100% - 68px);
  object-fit: cover;
  border-radius: 2px;
}
/* Dikey/farklı oranlı kaynak görsel (ör. elde telefon): cover yerine contain, TAMAMI görünür. */
.work__showcase--contain img {
  object-fit: contain;
}

/* ---- Pull-quote (435:979): ortalı, büyük Lora, accent MAGENTA (mavi DEĞİL — get_design_context
   ile doğrulandı, span text-[#d6249f]). Sadece renk değişir, ekstra bold YOK (tasarımda font-weight
   miras: Lora Medium 500, .hl'nin genel 700 override'ı burada istenmiyor). */
.work__quote {
  max-width: 434px;
  margin: 91px auto;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 26px;
  line-height: 36px;
  color: var(--wd-heading);
}
.work__quote .hl {
  color: var(--c-secondary);
  font-weight: 500;
}

/* ---- CTA (541:2071/2072): Manrope Bold-ish başlık + buton, üstten 94-ish boşluk ---- */
.work__cta {
  margin-top: 94px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 35px;
}
.work__cta-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: var(--wd-heading);
  margin: 0;
}

/* "Let's talk" lead widget — buton + altında açılan dropdown panel */
.work-lead { position: relative; display: inline-block; }
.work-lead__pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: 224px;
  max-width: 82vw;
  background: #fff;
  border: 2px solid #0a0a0a;
  box-shadow: 4px 4px 0 #0a0a0a;
  padding: 11px 12px 12px;
}
/* küçük ok (panelin butona bağlandığını gösterir) */
.work-lead__pop::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 2px solid #0a0a0a;
  border-top: 2px solid #0a0a0a;
  transform: rotate(45deg);
}
.work-lead__hint {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 18px;
  font-weight: 600;
  color: var(--wd-heading, #0a0a0a);
  margin: 0 0 9px;
}
.work-lead__form.cform { gap: 0; }
.work-lead__pop .cform__field { margin-bottom: 6px; }
.work-lead__pop .cform__field label { font-size: 11px; margin-bottom: 2px; }
.work-lead__pop .cform__field input,
.work-lead__pop .cform__field input[type="text"],
.work-lead__pop .cform__field input[type="email"] {
  width: 100%; padding: 4px 7px; font-size: 12px; height: 28px; line-height: 1.2; box-sizing: border-box;
}
.work-lead__req { color: var(--color-primary, #ff6b35); }
.work-lead__opt { color: var(--wd-muted, #888); font-weight: 400; font-size: 11px; }
.work-lead__go { margin-top: 2px; width: 100%; justify-content: center; padding: 6px; font-size: 12.5px; }
.work-lead__status { margin: 2px 0 8px; font-size: 12px; }
.work-lead__status.is-error { color: #be123c; }

@media (max-width: 520px) {
  .work-lead__pop { left: 0; right: auto; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .work__meta {
    flex-wrap: wrap;
    gap: 16px;
  }
  .work__meta-item {
    border-right: 0;
    width: auto;
  }
  .work__split {
    grid-template-columns: 1fr;
  }
  .work__split-media {
    width: 100%;
    height: auto;
    aspect-ratio: 419/300;
  }
  .work__metrics {
    flex-wrap: wrap;
  }
  .work__metric {
    width: 50%;
  }
  .work__arch-grid {
    grid-template-columns: 1fr;
  }
  .work__arch-figure {
    position: static;
    width: 120px;
    height: 120px;
  }
  .work__arch-content .work__media--arch {
    width: 100%;
  }
  .work__showcase {
    height: auto;
    padding: 24px 0;
  }
  .work__showcase img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}
