/* ═══════════════════════════════════════════════════════════
   YELKEN PERDE — Ana sayfa tasarımı
   Yüzen menü · sinematik giriş · koyu ürünler · yakınlaşan kolaj
   Hareketli bölümler yalnızca <html class="motion-ok"> iken çalışır
   (JS açık ve "hareketi azalt" kapalı). Aksi hâlde sade yerleşim gösterilir.
   ═══════════════════════════════════════════════════════════ */

:root {
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .24 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── MENÜ: solda logo · ortada yazılar · sağda randevu ───
   Logo arka plansızdır: altındaki bölüm koyuysa açık, açıksa koyu sürümü
   görünür (body.nav-on-light). Giriş bölümünden sonra biraz küçülür. */
body.home nav,
body.home nav.scrolled {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px clamp(24px, 7vw, 120px);
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;   /* boş alanlar arkadaki sayfaya tıklanabilir kalsın */
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), opacity 0.35s;
}

body.home nav > * { pointer-events: auto; }

/* Aşağı kaydırınca menü gizlenir, yukarı kaydırınca geri gelir */
body.home.nav-hidden nav {
  transform: translateY(-120%);
  opacity: 0;
}

body.home.nav-hidden nav > * { pointer-events: none; }

body.home .nav-logo {
  justify-self: start;
  align-self: center;
  display: grid;
}

body.home .nav-logo img,
body.home nav.scrolled .nav-logo img {
  grid-area: 1 / 1;
  height: 96px;
  width: auto;
  transition: height 0.35s, opacity 0.35s;
}

body.home .logo-on-light { opacity: 0; }

body.home.past-hero .nav-logo img { height: 68px; }
body.home.nav-on-light .logo-on-dark { opacity: 0; }
body.home.nav-on-light .logo-on-light { opacity: 1; }

.nav-side-cta {
  justify-self: end;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 14px 26px;
  box-shadow: 0 10px 28px rgba(30,26,23,0.18);
  transition: background 0.3s, border-color 0.3s;
}

.nav-side-cta:hover { background: var(--gold); border-color: var(--gold); }

/* Mobil menüdeki randevu butonu */
body.home .nav-cta {
  border-radius: 999px;
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: #fff !important;
}

@media (min-width: 901px) {
  /* Ortadaki cam bar: yazılar ortalı */
  body.home .nav-links {
    justify-self: center;
    justify-content: center;
    gap: 32px;
    padding: 15px 36px;
    background: rgba(250,248,244,0.84);
    border: 1px solid rgba(201,188,168,0.45);
    border-radius: 999px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(30,26,23,0.12);
  }

  body.home .nav-links a { padding: 4px 0; }
  body.home .nav-cta-item { display: none; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  body.home .nav-links { gap: 22px; padding: 14px 26px; }
  body.home .nav-logo img, body.home nav.scrolled .nav-logo img { height: 80px; }
  .nav-side-cta { padding: 12px 18px; }
}

@media (max-width: 900px) {
  body.home nav,
  body.home nav.scrolled {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
  }

  body.home .nav-logo img,
  body.home nav.scrolled .nav-logo img { height: 66px; }
  body.home.past-hero .nav-logo img { height: 52px; }

  .nav-side-cta { display: none; }

  /* Hamburger: yuvarlak cam düğme */
  body.home .nav-mobile-toggle {
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(250,248,244,0.9);
    border: 1px solid rgba(201,188,168,0.45);
    box-shadow: 0 8px 22px rgba(30,26,23,0.15);
  }

  body.home .nav-mobile-toggle span { width: 20px; }
}

/* ─── SİNEMATİK GİRİŞ ───
   Proje fotoğrafları kaydırdıkça üst üste geçiş yapar ve yavaşça yakınlaşır.
   JS her fotoğraf için --a (görünürlük) ve --z (yakınlaşma) değerlerini yazar. */
.cine-hero {
  position: relative;
  padding: 0;
  background: var(--charcoal);
}

.cine-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}

.motion-ok .cine-hero { height: calc(var(--n) * 75vh + 60vh); }
.motion-ok .cine-stage { position: sticky; top: 0; }

.cine-slides { position: absolute; inset: 0; }

.cine-slide {
  --a: 0;
  --z: 0;
  position: absolute;
  inset: 0;
  opacity: var(--a);
  transform: scale(calc(1.16 - 0.16 * var(--z)));
  will-change: opacity, transform;
}

.cine-slide:first-child { --a: 1; }

.cine-slide picture,
.cine-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Açılışta ilk fotoğraf yavaşça yerine oturur */
.motion-ok .cine-slide:first-child img { animation: cine-settle 2.6s cubic-bezier(.2,.7,.2,1) both; }

@keyframes cine-settle {
  from { transform: scale(1.12); filter: brightness(0.6); }
  to { transform: scale(1); filter: brightness(1); }
}

.cine-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,16,12,0.86) 0%, rgba(20,16,12,0.62) 34%, rgba(20,16,12,0.12) 68%, rgba(20,16,12,0.25) 100%),
    linear-gradient(0deg, rgba(20,16,12,0.55) 0%, rgba(20,16,12,0) 35%),
    linear-gradient(180deg, rgba(20,16,12,0.45) 0%, rgba(20,16,12,0) 22%);
}

/* Metin */
.cine-copy {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 7vw, 120px);
  bottom: clamp(48px, 11vh, 120px);
  width: min(620px, calc(100% - 48px));
  color: #fff;
}

.cine-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
}

.cine-title {
  font-family: var(--serif);
  font-size: clamp(44px, min(6.4vw, 9.5vh), 96px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.cine-title em { font-style: italic; color: var(--gold-light); }

/* Satır satır yukarı kayarak beliren başlık */
.cine-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.cine-line > span { display: inline-block; }

.motion-ok .cine-line > span { animation: cine-rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
.motion-ok .cine-line:nth-child(2) > span { animation-delay: 0.12s; }
.motion-ok .cine-line:nth-child(3) > span { animation-delay: 0.24s; }

@keyframes cine-rise {
  from { transform: translateY(105%); }
  to { transform: translateY(0); }
}

.motion-ok .cine-eyebrow,
.motion-ok .cine-subtitle,
.motion-ok .cine-desc,
.motion-ok .cine-buttons,
.motion-ok .cine-stats,
.motion-ok .cine-meta,
.motion-ok .cine-cue { animation: cine-fade 1s ease both; }

.motion-ok .cine-eyebrow { animation-delay: 0.1s; }
.motion-ok .cine-subtitle { animation-delay: 0.5s; }
.motion-ok .cine-desc { animation-delay: 0.6s; }
.motion-ok .cine-buttons { animation-delay: 0.7s; }
.motion-ok .cine-stats { animation-delay: 0.85s; }
.motion-ok .cine-meta,
.motion-ok .cine-cue { animation-delay: 1.1s; }

@keyframes cine-fade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.cine-subtitle {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 14px;
}

.cine-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin-bottom: 30px;
}

.cine-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.cine-buttons .btn-primary { background: var(--gold); border-color: var(--gold); color: #fff; }
.cine-buttons .btn-primary:hover { background: #fff; border-color: #fff; color: var(--charcoal); }
.cine-buttons .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.45); }
.cine-buttons .btn-secondary:hover { background: #fff; border-color: #fff; color: var(--charcoal); }

.cine-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.cine-stats .stat-number {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  color: #fff;
}

.cine-stats .stat-number em { font-style: normal; color: var(--gold-light); }

.cine-stats .stat-label {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* Fotoğraf açıklaması + ilerleme çubukları */
.cine-meta {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 7vw, 120px);
  bottom: clamp(48px, 11vh, 120px);
  width: 280px;
  color: #fff;
}

.cine-captions { position: relative; height: 54px; margin-bottom: 16px; }

.cine-caption {
  position: absolute;
  inset: auto 0 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s;
}

.cine-caption.is-active { opacity: 1; transform: none; }

.cine-caption em {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 6px;
}

.cine-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  margin-right: 10px;
}

.cine-bars { display: flex; gap: 6px; }

.cine-bars span {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
}

.cine-bars i {
  --f: 0;
  display: block;
  height: 100%;
  background: var(--gold-light);
  transform: scaleX(var(--f));
  transform-origin: left;
}

.cine-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.cine-cue i {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(rgba(255,255,255,0.8), transparent);
  transform-origin: top;
  animation: cine-cue 2.2s ease-in-out infinite;
}

@keyframes cine-cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Hareketsiz yerleşim: yalnızca ilk fotoğraf */
html:not(.motion-ok) .cine-slide:not(:first-child),
html:not(.motion-ok) .cine-meta,
html:not(.motion-ok) .cine-cue { display: none; }

@media (max-width: 1100px) {
  .cine-meta { display: none; }
}

/* Alçak masaüstü ekranlar (ör. 1366×768): metin menünün altına taşmasın */
@media (min-width: 901px) and (max-height: 820px) {
  .cine-stats { display: none; }
  .cine-copy { bottom: clamp(36px, 7vh, 80px); }
  .cine-desc { margin-bottom: 22px; }
}

@media (max-width: 900px) {
  .motion-ok .cine-hero { height: calc(var(--n) * 60vh + 50vh); }

  .cine-shade {
    background:
      linear-gradient(0deg, rgba(20,16,12,0.92) 0%, rgba(20,16,12,0.7) 42%, rgba(20,16,12,0.15) 72%),
      linear-gradient(180deg, rgba(20,16,12,0.5) 0%, rgba(20,16,12,0) 22%);
  }

  .cine-copy { left: 20px; right: 20px; width: auto; bottom: 30px; }
  .cine-title { font-size: clamp(44px, 12vw, 64px); margin-bottom: 16px; }
  .cine-desc { font-size: 14px; margin-bottom: 22px; }
  .cine-buttons { flex-direction: column; }
  .cine-buttons a { justify-content: center; }
  .cine-stats { gap: 24px; margin-top: 24px; padding-top: 18px; }
  .cine-stats .stat-number { font-size: 30px; }
  .cine-cue { display: none; }

  /* Telefonda hikâye çubukları menünün altında */
  .cine-meta {
    display: block;
    left: 20px;
    right: 20px;
    top: 96px;
    bottom: auto;
    width: auto;
  }
  .cine-captions { display: none; }
}

@media (max-width: 380px), (max-height: 720px) and (max-width: 900px) {
  .cine-desc, .cine-stats { display: none; }
}

/* ─── KOYU ÜRÜN BÖLÜMÜ ─── */
body.home #urunler-preview {
  background: radial-gradient(120% 80% at 80% 0%, #2c2520 0%, #1b1714 60%);
  color: #f4ede1;
}

body.home #urunler-preview .section-title { color: #f4ede1; }
body.home #urunler-preview .section-title em { color: var(--gold-light); }

body.home #urunler-preview .btn-secondary {
  color: #f4ede1;
  border-color: rgba(244,237,225,0.35);
}

body.home #urunler-preview .btn-secondary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

body.home #urunler-preview .products-grid { gap: 12px; }

body.home #urunler-preview .product-card {
  border-radius: 6px;
  background: #2a2420;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

body.home #urunler-preview .product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212,176,122,0);
  border-radius: 6px;
  z-index: 3;
  transition: border-color 0.4s;
  pointer-events: none;
}

body.home #urunler-preview .product-card:hover::after { border-color: rgba(212,176,122,0.7); }

@media (max-width: 600px) {
  #urunler-preview .products-grid { gap: 8px; }
}

/* ─── KÂĞIT DOKUSU (krem bölümler) ─── */
body.home #neden,
body.home #bolgeler,
body.home #randevu,
body.home .zoom-collage { background-image: var(--paper); }

/* ─── YAKINLAŞAN KOLAJ ─── */
.zoom-collage {
  --c: 1;  /* son yazının görünürlüğü */
  position: relative;
  padding: 0;
  background-color: var(--cream-dark);
}

.zc-head {
  text-align: center;
  padding: 100px 24px 40px;
}

.zc-head .section-title { margin: 0 auto; max-width: 700px; }

.zc-img {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--linen);
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(30,26,23,0.18);
}

.zc-img picture,
.zc-img img,
.zc-img video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hareketsiz yerleşim: sade ızgara */
.zc-stage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 0 80px 100px;
}

.zc-stage .zc-img { aspect-ratio: 3 / 4; }

.zc-caption {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 28px;
  color: var(--stone);
}

.zc-caption p { margin-bottom: 24px; }

/* Hareketli yerleşim */
.motion-ok .zoom-collage { height: 300vh; height: 300svh; }

.motion-ok .zc-stage {
  display: block;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 0;
  overflow: hidden;
}

.motion-ok .zc-layer {
  --s: 1;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(var(--s));
  will-change: transform;
  pointer-events: none;
}

.motion-ok .zc-layer .zc-img {
  aspect-ratio: auto;
  width: 25vw;
  height: 25vh;
  pointer-events: auto;
}

.motion-ok .zc-1 .zc-img { top: -30vh; left: 5vw; width: 35vw; height: 30vh; }
.motion-ok .zc-2 .zc-img { top: -10vh; left: -25vw; width: 20vw; height: 45vh; }
.motion-ok .zc-3 .zc-img { left: 27.5vw; width: 25vw; height: 25vh; }
.motion-ok .zc-4 .zc-img { top: 27.5vh; left: 5vw; width: 20vw; height: 25vh; }
.motion-ok .zc-5 .zc-img { top: 27.5vh; left: -22.5vw; width: 30vw; height: 25vh; }
.motion-ok .zc-6 .zc-img { top: 22.5vh; left: 25vw; width: 15vw; height: 15vh; }

/* Kolaj tamamen açılınca: tam ekran fotoğrafın üzerinde yazı ve buton */
.motion-ok .zc-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px 12vh;
  color: #fff;
  background: linear-gradient(0deg, rgba(22,18,14,0.78) 0%, rgba(22,18,14,0.2) 50%, rgba(22,18,14,0) 70%);
  opacity: var(--c);
  pointer-events: none;
}

.motion-ok .zoom-collage.is-full .zc-caption { pointer-events: auto; }

.motion-ok .zc-caption p {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 300;
  font-style: italic;
  max-width: 760px;
  line-height: 1.25;
  margin-bottom: 28px;
}

.motion-ok .zc-btn {
  background: var(--gold);
  border-color: var(--gold);
}

.motion-ok .zc-btn:hover { background: #fff; border-color: #fff; color: var(--charcoal); }

@media (max-width: 900px) {
  .zc-head { padding: 64px 24px 28px; }
  .zc-stage { padding: 0 24px 64px; grid-template-columns: 1fr 1fr; gap: 8px; }
  .motion-ok .zoom-collage { height: 240vh; height: 240svh; }
}
