/* PACKT landing — 1920 x 2180.56 sabit sahne, viewport'a göre ölçeklenir.
   Tüm koordinatlar Illustrator SVG dışa aktarımından birebir alınmıştır. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { background: #ededee; }

body {
  font-family: "Aptos Narrow", Aptos, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

#viewport { width: 100%; overflow: hidden; }

#stage {
  position: relative;
  width: 1920px;
  height: 1190px;
  transform-origin: top left;
  background: #ededee;
}

/* ---------- metin yardımcıları ---------- */
.txt  { position: absolute; line-height: 1; white-space: nowrap; }
.fs34 { font-size: 34.52px; }
.fs28 { font-size: 28px; }
.fs17 { font-size: 17.27px; }
.fs17r{ position: absolute; font-size: 17.26px; font-weight: 400; }
.fs15 { font-size: 15px; }
.bold { font-weight: 700; }
.c-dark  { color: #333132; }
.c-gray  { color: #777a7d; }
.c-light { color: #d3d2c1; }
.c-red   { color: #ff5239; }
.ta-r { text-align: right; }
.ta-c { text-align: center; }

/* ---------- çizgiler ---------- */
.line { position: absolute; }
.line.thin     { height: 0.75px; background: #333132; }
.line.row-line { height: 1px;    background: #777a7d; }
.line.red-line { height: 1.87px; background: #ff5239; }
.line.proc     { height: 1.25px; background: #ff5239; }

/* ---------- hero ---------- */
.hero-photo {
  position: absolute;
  left: 769.93px; top: 0;
  width: 400px; height: 600px;
  object-fit: cover;
  opacity: 0.6;
  z-index: 2;
}
.logo-top { position: absolute; left: 840px; top: 113.29px; z-index: 3; }
.logo-top svg { transition: transform 0.4s ease; }
.logo-top:hover svg { transform: scale(1.04); }

.beige {
  position: absolute;
  left: 0; top: 346.43px;
  width: 1920px; height: 853.57px;
  background: transparent;
  z-index: 1;
}

#stage > .txt, #stage > .line, .mark-mid, .mini { z-index: 3; }

/* ---------- liste satırları ---------- */
.row-hit {
  position: absolute;
  left: 0; width: 1920px; height: 75px;
  z-index: 3;
}
.row-hit .txt, .row-hit .fs17r { transition: transform 0.35s ease; }
.row-hit:hover .txt { transform: translateX(8px); }
.row-hit:hover .fs17r.ta-r { transform: translateX(-8px); }

/* ---------- kategoriler ---------- */
.cat {
  position: absolute;
  top: 612px;
  width: 400px;          /* HTML'deki left değerleri kolon merkezi - 200 olarak hesaplandı */
  text-align: center;
  text-decoration: none;
  z-index: 3;
  transform-origin: center;
}

.cat-icon {
  width: 127.6px; height: 127.61px;
  display: block;
  margin: 0 auto;
  transition: transform 0.4s cubic-bezier(.22,.68,.36,1.2);
}
.cat:hover .cat-icon { transform: translateY(-8px); }

.cat-title {
  position: relative;
  margin-top: 41.2px;    /* ikon altı 777.93 -> başlık üstü 819.13 */
  font-size: 27.22px;
  font-weight: 700;
  color: #ff5239;
  line-height: 1;
}
.cat-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: #ff5239;
  transition: width 0.35s ease;
}
.cat:hover .cat-title::after { width: 110px; }

.cat-sub {
  margin-top: 6px;       /* 852.34 hizası */
  font-family: "Aptos SemiBold", Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 16.74px;
  font-weight: 600;
  color: #777a7d;
  line-height: 20.09px;
}

/* hover'da aşağı açılan ürün önizlemesi */
.cat:hover { z-index: 5; }

.cat-preview {
  height: 0;
  margin-top: 10px;
  overflow: hidden;
  pointer-events: none;
  transition: height 0.45s cubic-bezier(.65,0,.35,1);
}
.cat-preview img {
  display: block;
  width: 320px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 0.4s ease 0.1s, transform 0.45s cubic-bezier(.22,.68,.36,1.1) 0.1s;
}
.cat:hover .cat-preview { height: 190px; }
.cat:hover .cat-preview img { opacity: 1; transform: translateY(0); }

/* ---------- turuncu CTA butonları ---------- */
.cta-btn {
  position: absolute;
  left: 830px;
  width: 260px; height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff5239;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  z-index: 4;
  transition: background 0.35s ease, letter-spacing 0.35s ease,
              opacity 0.8s ease, transform 0.8s ease;
}
.cta-btn:hover {
  background: #333132;
  letter-spacing: 2px;
}
.order-btn { top: 1120px; }

.mark-mid { position: absolute; }

/* ---------- masa bandı ---------- */
.desk-clip {
  position: absolute;
  left: 0; top: 1134.09px;
  width: 1920px; height: 540px;
  overflow: hidden;
  z-index: 2;
}
.desk-img {
  position: absolute;
  left: 0; top: -233.53px;
  width: 1948.8px; height: 1299.2px;
  transform: scale(1.07);
  transition: transform 2s ease-out;
}
.desk-clip.on .desk-img { transform: scale(1); }

/* ---------- süreç daireleri ---------- */
.circle {
  position: absolute;
  top: 1844.28px;
  width: 187.5px; height: 187.5px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 3;
}
.circle.photo { border: 1px solid #ff5239; }
.circle.photo.thick { border-width: 2px; }
.circle.brand { background: #ff5239; border: 1px solid #333132; }

.circle img {
  position: absolute;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.circle img.flip { transform: scaleX(-1); }
.circle.photo:hover img { transform: scale(1.08); }
.circle.photo:hover img.flip { transform: scaleX(-1) scale(1.08); }

.circle.brand svg { transition: transform 0.6s ease; }
.circle.brand:hover svg { transform: scale(1.12); }

.mini { position: absolute; width: 15.76px; height: 10.45px; }

/* ---------- iletişim butonu ---------- */
.contact-btn { top: 2205px; }

/* ================= ANİMASYONLAR ================= */
.rv { transition: opacity 0.8s ease, transform 0.8s ease; }

.rv-fade { opacity: 0; }
.rv-fade.on { opacity: 1; }
.hero-photo.rv-fade.on { opacity: 0.6; }

.rv-up { opacity: 0; transform: translateY(24px); }
.rv-up.on { opacity: 1; transform: translateY(0); }

.rv-pop { opacity: 0; transform: translateY(24px) scale(0.92); }
.rv-pop.on { opacity: 1; transform: translateY(0) scale(1); }
.rv-pop { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,.68,.36,1.15); }

.rv-line { transform: scaleX(0); transform-origin: left center; }
.rv-line.on { transform: scaleX(1); }
.rv-line { transition: transform 1.1s cubic-bezier(.65,0,.35,1); }

/* gecikme kademeleri */
.d1 { transition-delay: 0.15s; }
.d2 { transition-delay: 0.3s; }
.d3 { transition-delay: 0.45s; }
.d4 { transition-delay: 0.6s; }

/* satır hover geçişleri reveal transition'ı ile çakışmasın */
.row-hit.on .txt, .row-hit.on .fs17r { transition: transform 0.35s ease; }

@media (prefers-reduced-motion: reduce) {
  .rv, .rv-line, .rv-pop, .desk-img, .cat-icon, .circle img {
    transition: none !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   MOBİL DÜZEN (<768px) — aynı renkler, fontlar ve motifler,
   dikey akışa uyarlanmış hali
   ============================================================ */
#mobile { display: none; }

@media (max-width: 767px) {
  #viewport { display: none; }
  #mobile { display: block; color: #333132; overflow: hidden; }

  .m-num { font-weight: 700; font-size: 24px; }

  /* ---------- hero ---------- */
  .m-hero { padding-top: 10px; }
  .m-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 15px;
  }
  .m-logo { display: block; width: 88px; flex: 0 0 auto; }
  .m-logo svg { width: 100%; display: block; }
  /* logodan etiketlere uzanan ince çizgi (masaüstündeki hero çizgisi) */
  .m-hline { flex: 1; height: 0.75px; background: #333132; margin: 0 6px; }
  .m-label { flex: 0 0 auto; }
  .m-hero-photo { height: 120px; overflow: hidden; }
  .m-hero-photo img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 39%;   /* tornavida alışverişi: iki el de kadrajda */
    opacity: 0.75;
  }
  .m-label { flex: 1; }
  .m-label .m-num { display: block; margin-bottom: 2px; font-size: 16px; }
  .m-label.ta-r { text-align: right; }
  .m-label:first-child { color: #333132; }
  .m-label.ta-r { color: #777a7d; }

  /* ---------- bej bant ---------- */
  .m-band { background: transparent; padding-bottom: 0; }
  .m-row { border-top: 1px solid #777a7d; padding: 6px 18px 5px; }
  .m-row-head { display: flex; align-items: baseline; gap: 10px; }
  .m-row-head .m-num { font-size: 18px; }
  .m-row-title { font-size: 16px; font-weight: 700; }
  .m-row-note { font-size: 10.5px; margin-top: 1px; }

  /* ---------- kategoriler (2'li kolon, 6. hücre = Sipariş Ver) ----------
     750px yükseklik sınırı için kompakt; ürün görselleri mobilde gizli   */
  .m-cats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px 8px;
    padding: 16px 10px 12px;
  }
  .m-cat { display: block; text-decoration: none; text-align: center; }
  .m-cat-icon { width: 34px; height: 34px; display: block; margin: 0 auto; }
  .m-cat-title { color: #ff5239; font-size: 13px; font-weight: 700; margin-top: 4px; }
  .m-cat-sub {
    font-family: "Aptos SemiBold", Aptos, "Segoe UI", Arial, sans-serif;
    color: #777a7d; font-size: 9.5px; font-weight: 600; margin-top: 2px;
    line-height: 12px;
  }
  .m-cat-img { display: none; }

  /* ---------- butonlar ---------- */
  .m-order, .m-contact {
    display: flex; align-items: center; justify-content: center;
    width: 230px; height: 54px;
    margin: 44px auto 0;
    background: #ff5239; color: #fff;
    font-size: 18px; font-weight: 700; letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  .m-order:active, .m-contact:active { background: #333132; }
  /* buton, kategori ızgarasının 6. hücresinde ortalanır */
  .m-order {
    margin: 0;
    align-self: center;
    justify-self: center;
    width: 94%;
    max-width: 150px;
    height: 38px;
    font-size: 12.5px;
  }
  .m-contact { margin: 34px auto 44px; }

  /* ---------- slogan + kırmızı çizgi ---------- */
  .m-slogan {
    display: flex; justify-content: space-between;
    padding: 20px 24px 12px;
    font-size: 16px; font-weight: 700; color: #333132;
  }
  .m-redline-wrap { position: relative; }
  .m-redline { height: 2px; background: #ff5239; margin: 0 16px; }
  .m-mark {
    position: absolute;
    width: 44px; height: 22px;
    left: 50%; top: -10px;
    transform: translateX(-50%);
  }

  /* ---------- masa fotoğrafı ---------- */
  .m-desk { position: relative; }
  .m-desk img { display: block; width: 100%; }
  .m-desk-num { position: absolute; left: 24px; top: 16px; color: #d3d2c1; }
  .m-desk-title {
    position: absolute; left: 50%; top: 20px; transform: translateX(-50%);
    font-size: 24px; font-weight: 700; color: #ff5239;
  }

  /* ---------- süreç şeridi (yatay kaydırma) ---------- */
  .m-process { padding: 42px 0 4px; }
  .m-strip {
    display: flex; gap: 26px;
    overflow-x: auto;
    padding: 0 24px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .m-step { flex: 0 0 auto; width: 150px; scroll-snap-align: center; }
  .m-circle {
    width: 150px; height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #ff5239;
  }
  .m-circle img { width: 100%; height: 100%; object-fit: cover; }
  .m-circle-thick { border-width: 2px; }
  .m-circle-brand {
    background: #ff5239; border-color: #333132;
    display: flex; align-items: center; justify-content: center;
  }
  .m-circle-brand svg { width: 74%; }
  .m-step-label {
    margin-top: 14px;
    border-top: 1.25px solid #ff5239;
    border-bottom: 1.25px solid #ff5239;
    padding: 8px 4px;
    min-height: 50px;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    font-size: 13px; font-weight: 700; color: #333132;
  }
}

@media (min-width: 768px) {
  #mobile { display: none; }
}
