/*
 * Anasayfa ilk ekranı: sinematik katman (Görünüm > Animasyonlar açıksa hareket eder).
 * - Masaüstü: fotoğraf yavaşça yakınlaşır (Ken Burns), kenarlarda koyu geçiş
 * - Mobil: fotoğraf tam ekran, başlık ve butonlar fotoğrafın alt kısmında okunur
 * - Hareket tercihi kapalıysa hiçbir animasyon çalışmaz; yerleşim yine düzgün kalır
 */

/* ---------- Masaüstü ve tablet: sinematik fotoğraf ---------- */
.hero-lane__swiper { position: relative; isolation: isolate; }
.hero-lane__swiper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(14, 12, 11, 0.0) 55%, rgba(14, 12, 11, 0.55) 100%),
    radial-gradient(120% 80% at 50% 40%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.35) 100%);
}

@media (prefers-reduced-motion: no-preference) {
  /* Aktif slayt yavaşça yakınlaşır; geçişte önceki slayt zaten kayboluyor (fade) */
  .hero-lane__swiper .swiper-slide img {
    transform: scale(1.12);
    transition: transform 0s;
  }
  .hero-lane__swiper .swiper-slide-active img {
    animation: cine-zoom 7.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes cine-zoom {
    from { transform: scale(1.12); }
    to { transform: scale(1); }
  }

  /* Sayaç (müşteri sayısı) sayfa açılınca ilerler; JS değeri yazar, burada yalnız görünüm */
  .hero-lane__facts dd[data-count] { font-variant-numeric: tabular-nums; }
}

/* ---------- Mobil: tam ekran fotoğraf, metin altta ---------- */
@media (max-width: 991.98px) {
  .hero-lane {
    padding: 0 0 28px;
  }
  .hero-lane__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "stack";
    gap: 0;
    align-items: stretch;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
    width: 100%;
    margin: 0;
  }
  .hero-lane__media {
    grid-area: stack;
    max-width: none;
    justify-self: stretch;
    margin: 0;
    height: min(82svh, 720px);
    min-height: 520px;
  }
  .hero-lane__swiper {
    aspect-ratio: auto;
    max-height: none;
    height: 100%;
    border-radius: 0;
  }
  .hero-lane__swiper::after {
    background:
      linear-gradient(180deg, rgba(26, 23, 21, 0.5) 0%, rgba(26, 23, 21, 0.15) 22%,
        rgba(26, 23, 21, 0.6) 48%, rgba(26, 23, 21, 0.94) 74%, #1a1715 100%);
  }
  /* Metin fotoğrafın alt kısmında, butonlar alttaki iletişim barının üstünde */
  .hero-lane__copy {
    grid-area: stack;
    align-self: end;
    position: relative;
    z-index: 3;
    padding: 0 18px 92px;
  }
  .hero-lane__title {
    font-size: clamp(1.9rem, 8.2vw, 2.6rem);
    line-height: 1.08;
    max-width: none;
  }
  .hero-lane__lead {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(241, 236, 232, 0.86);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 12px;
  }
  .hero-lane__actions { margin-top: 18px; gap: 10px; }
  .hero-lane__facts { margin-top: 18px; padding-top: 14px; }
  /* Sayaç ve kaydırıcı göstergesi fotoğrafın üstünde kalır */
  .hero-lane__caption {
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
    z-index: 4;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }
  .hero-lane__caption-body { display: none; }
  .hero-lane__lanes { pointer-events: auto; margin: 0; }
  .hero-lane__play { z-index: 5; }
}

@media (max-width: 575.98px) {
  .hero-lane__copy { padding: 0 16px 88px; }
  .hero-lane__lead { -webkit-line-clamp: 3; }
}

/* ---------- İşletme ilk ekranı: rozet, altın ana buton, açık/kapalı durum kartı ---------- */
.hero-cine__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 7px 14px;
  border: 1px solid rgba(242, 238, 235, 0.16);
  border-radius: 999px;
  background: rgba(14, 12, 11, 0.55);
  backdrop-filter: blur(6px);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #f2eeeb;
}
.hero-cine__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c49c86;
  box-shadow: 0 0 0 0 rgba(196, 156, 134, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-cine__pulse { animation: cine-pulse 2s ease-out infinite; }
  @keyframes cine-pulse {
    0% { box-shadow: 0 0 0 0 rgba(196, 156, 134, 0.6); }
    100% { box-shadow: 0 0 0 10px rgba(196, 156, 134, 0); }
  }
}

/* Ana buton: altın gradyan, diğerleri çerçeveli */
.hero-lane__btn--call {
  background: linear-gradient(120deg, #e4c49e 0%, #c49c86 55%, #b68b72 100%) !important;
  color: #1f1b19 !important;
  box-shadow: 0 10px 30px rgba(196, 156, 134, 0.25);
}
.hero-lane__btn--wa {
  background: rgba(14, 12, 11, 0.45) !important;
  border: 1px solid rgba(242, 238, 235, 0.22) !important;
}

/* Durum kartı: açık/kapalı, kapanış ya da açılış saati */
.hero-cine__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(242, 238, 235, 0.14);
  background: rgba(14, 12, 11, 0.55);
  backdrop-filter: blur(8px);
  font-size: 15px;
  color: #d9d2cc;
}
.hero-cine__status strong { color: #f2eeeb; font-weight: 600; }
.hero-cine__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9a8a80;
  flex: 0 0 auto;
}
.hero-cine__status.is-open .hero-cine__dot { background: #6fd39a; box-shadow: 0 0 0 4px rgba(111, 211, 154, 0.18); }

/* Masaüstünde yazı tarafı daha koyu, okunur */
@media (min-width: 992px) {
  .hero-lane__title { font-weight: 700; letter-spacing: -0.01em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
}

/* Mobil: videodaki logo metnin arkasında kalmasın diye karartma güçlendirildi, giriş metni kısaltıldı */
@media (max-width: 991.98px) {
  .hero-lane__swiper::after {
    background:
      linear-gradient(180deg, rgba(14, 12, 11, 0.2) 0%, rgba(14, 12, 11, 0.12) 22%,
        rgba(14, 12, 11, 0.6) 46%, rgba(14, 12, 11, 0.93) 72%, #0e0c0b 100%);
  }
  .hero-lane__lead { -webkit-line-clamp: 2; }
  .hero-cine__status { font-size: 14px; }
}

/* Mobil: giriş paragrafı yerine videodaki logo ve kısa metin öne çıksın */
@media (max-width: 575.98px) {
  .hero-lane__lead { display: none; }
}

/* ---------- Masaüstü: video tam ekran arka plan, metin solda ---------- */
@media (min-width: 992px) {
  .hero-lane {
    position: relative;
    min-height: min(100vh, 900px);
    display: flex;
    align-items: center;
    padding: 150px 0 80px;
    overflow: hidden;
    isolation: isolate;
  }
  .hero-lane__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "stack";
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 clamp(24px, 5vw, 88px);
    gap: 0;
    align-items: center;
  }
  .hero-lane__media {
    grid-area: stack;
    position: absolute;
    inset: 0;
    z-index: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    justify-self: stretch;
  }
  .hero-lane__swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
  }
  .hero-lane__swiper .swiper-slide img,
  .hero-lane__swiper .swiper-slide video { object-position: 62% 40%; }
  .hero-lane__swiper::after {
    background:
      linear-gradient(90deg, rgba(14, 12, 11, 0.94) 0%, rgba(14, 12, 11, 0.7) 34%, rgba(14, 12, 11, 0.12) 66%, rgba(14, 12, 11, 0.28) 100%),
      linear-gradient(0deg, #0e0c0b 0%, rgba(14, 12, 11, 0) 28%);
  }
  .hero-lane__copy {
    grid-area: stack;
    position: relative;
    z-index: 3;
    max-width: 640px;
  }
  .hero-lane__caption {
    position: absolute;
    right: 24px;
    bottom: 22px;
    z-index: 4;
    margin: 0;
  }
  .hero-lane__caption-body { display: none; }
  .hero-lane__play { z-index: 5; }
}

/* Masaüstünde dikey video yatay kutuya sığarken logo kırpılmasın: kırpma üst kısımdan */
@media (min-width: 992px) {
  .hero-lane__swiper .swiper-slide video,
  .hero-lane__video { object-fit: cover; object-position: 50% 0%; }
}

/* Masaüstü: video sağda dikey bir afiş gibi durur (logo büyüyüp metnin altına girmez), sol taraf metin */
@media (min-width: 992px) {
  .hero-lane__video {
    position: absolute !important;
    top: 50% !important;
    right: 7%;
    left: auto !important;
    width: auto !important;
    height: 88% !important;
    aspect-ratio: 9 / 16;
    transform: translateY(-50%);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(242, 238, 235, 0.08);
    object-fit: cover;
    object-position: 50% 0%;
  }
  .hero-lane__swiper::after {
    background:
      linear-gradient(90deg, rgba(14, 12, 11, 0.94) 0%, rgba(14, 12, 11, 0.7) 36%, rgba(14, 12, 11, 0.25) 62%, rgba(14, 12, 11, 0.35) 100%),
      linear-gradient(0deg, #0e0c0b 0%, rgba(14, 12, 11, 0) 28%);
  }
}

/* Masaüstü: yatay sinematik video tam ekran arka plan (afiş kutusu yok), metin solda */
@media (min-width: 992px) {
  .hero-lane__video {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    transform: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: cover;
    object-position: 60% 50%;
  }
  .hero-lane__swiper::after {
    background:
      linear-gradient(90deg, rgba(14, 12, 11, 0.9) 0%, rgba(14, 12, 11, 0.55) 40%, rgba(14, 12, 11, 0.1) 75%, rgba(14, 12, 11, 0.2) 100%),
      linear-gradient(0deg, #0e0c0b 0%, rgba(14, 12, 11, 0) 25%);
  }
}
