/* ==========================================================================
   YABIZ SERVICES SECTION (HİZMETLERİMİZ) - STYLESHEET
   Birebir Referans Tasarımı + Playfair Serif + Görünür Yüzen Ok Butonları
   ========================================================================== */

/* Google Font: Playfair Display for Luxury Serif Headlines */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   Wrapper & Layout Containment (Zero Overflow)
   ========================================================================== */
.yabiz-services-wrapper {
  background-color: #ede8df;
  padding: 5.5rem 0;
  margin: 3.5rem 0;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.yabiz-services-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .yabiz-services-container {
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 3.5rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* ==========================================================================
   Sol Kolon: Başlık, Açıklama & Mobil Kontroller
   ========================================================================== */
.yabiz-services-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.yabiz-services-subtag {
  font-family: var(--nav-font, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a37a4c;
  margin-bottom: 1.25rem;
  display: block;
}

/* Referanstaki Birebir Zarif Serif Başlık */
.yabiz-services-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  font-weight: 600;
  line-height: 1.16;
  color: #22201e;
  letter-spacing: -0.015em;
  margin-bottom: 1.35rem;
}

.yabiz-services-desc {
  font-family: var(--nav-font, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.98rem;
  line-height: 1.7;
  color: #5c574f;
  max-width: 330px;
  margin-bottom: 1.5rem;
}

/* Masaüstü & Mobil Hızlı Yönlendirme ve Sayfa Butonları */
.yabiz-services-left-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.yabiz-services-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--nav-font, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1c1917;
  text-decoration: none;
  border-bottom: 1.5px solid #a37a4c;
  padding-bottom: 3px;
  transition: all 0.25s ease;
}

.yabiz-services-all-btn:hover {
  color: #a37a4c;
  transform: translateX(3px);
}

.yabiz-services-all-btn i {
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

.yabiz-services-all-btn:hover i {
  transform: translateX(3px);
}

/* ==========================================================================
   Sağ Kolon: Slider & Görünür Yüzen Gezinme Okları (Floating Arrows)
   ========================================================================== */
.yabiz-services-slider-wrap {
  position: relative;
  width: 100%;
  min-width: 0; /* Grid 1fr taşmasını kesin olarak önler */
}

/* Referanstaki Birebir Konumlandırılmış Koyu Petrol Yuvarlak Butonlar */
.yabiz-services-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2a4441 0%, #1b312f 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.45);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(18, 36, 33, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  font-size: 1.55rem;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Sol Ok: Slider'ın Sol Kenarında */
.yabiz-services-arrow.prev {
  left: -22px;
}

/* Sağ Ok: Slider'ın Sağ Kenarında */
.yabiz-services-arrow.next {
  right: -12px;
}

.yabiz-services-arrow:hover {
  background: linear-gradient(145deg, #182e2b 0%, #0d1e1c 100%);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 14px 32px rgba(14, 28, 26, 0.48), 0 0 16px rgba(197, 168, 92, 0.3);
  border-color: #c5a85c;
  color: #ffffff;
}

.yabiz-services-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.yabiz-services-arrow:focus-visible {
  outline: 3px solid #c5a85c;
  outline-offset: 3px;
}

.yabiz-services-arrow[aria-disabled="true"],
.yabiz-services-arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
  filter: grayscale(0.5);
  box-shadow: none;
}

/* ==========================================================================
   Kayan Kartlar Listesi (Track)
   ========================================================================== */
.yabiz-services-track {
  display: flex;
  gap: 1.6rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1.75rem 1rem 2.25rem 1rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE & Edge */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  cursor: grab;
}

.yabiz-services-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.yabiz-services-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* ==========================================================================
   Birebir Dikey Hizmet Kartı
   ========================================================================== */
.yabiz-service-card {
  flex: 0 0 255px;
  width: 255px;
  height: 390px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.16), 0 4px 10px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.85rem 1.35rem;
  background-color: #1c1917;
  box-sizing: border-box;
  outline: none;
}

.yabiz-service-card:hover,
.yabiz-service-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px -8px rgba(0, 0, 0, 0.32), 0 8px 18px rgba(0, 0, 0, 0.12);
  border-color: rgba(197, 168, 92, 0.6);
}

.yabiz-service-card:focus-visible {
  outline: 2px solid #c5a85c;
  outline-offset: 3px;
}

/* Kart Görseli */
.yabiz-service-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.yabiz-service-card:hover .yabiz-service-bg {
  transform: scale(1.08);
}

/* Çok Kademeli Lüks Karartma Gradyanı */
.yabiz-service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.18) 35%, rgba(0,0,0,0.65) 70%, rgba(0,0,0,0.92) 100%);
  z-index: 2;
  transition: background 0.35s ease;
}

.yabiz-service-card:hover .yabiz-service-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.28) 30%, rgba(0,0,0,0.78) 65%, rgba(0,0,0,0.98) 100%);
}

/* Kart Üst Rozeti */
.yabiz-service-badge {
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--nav-font, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.yabiz-service-badge i {
  color: #c5a85c;
  font-size: 0.75rem;
}

.yabiz-service-card:hover .yabiz-service-badge {
  background: rgba(197, 168, 92, 0.9);
  border-color: #c5a85c;
  color: #1a1606;
}

.yabiz-service-card:hover .yabiz-service-badge i {
  color: #1a1606;
}

/* Kart Başlığı & Buton */
.yabiz-service-info {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.15rem;
  width: 100%;
}

.yabiz-service-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.42rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.22;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Çerçeveli İncele Butonu (Fotoğraftaki Birebir Buton) */
.yabiz-service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  color: #ffffff;
  font-family: var(--nav-font, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.58rem 1.35rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none; /* Tıklama üst card elementine geçer */
}

.yabiz-service-btn i {
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}

.yabiz-service-card:hover .yabiz-service-btn {
  background-color: #ffffff;
  color: #18181b;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.38);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.yabiz-service-card:hover .yabiz-service-btn i {
  transform: translateX(3px);
}

/* ==========================================================================
   Duyarlı Tasarım & Mobil İyileştirmeler
   ========================================================================== */
@media (max-width: 1023px) {
  .yabiz-services-wrapper {
    padding: 4.5rem 0;
    margin: 2.5rem 0;
  }

  .yabiz-services-container {
    gap: 2rem;
  }

  .yabiz-services-left {
    text-align: center;
    align-items: center;
  }

  .yabiz-services-desc {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .yabiz-services-arrow.prev {
    left: 4px;
  }

  .yabiz-services-arrow.next {
    right: 4px;
  }
}

@media (max-width: 768px) {
  .yabiz-services-wrapper {
    padding: 3.5rem 0;
    margin: 2rem 0;
  }

  .yabiz-services-container {
    padding: 0 1rem;
  }

  .yabiz-services-title {
    font-size: 2.15rem;
    margin-bottom: 1rem;
  }

  .yabiz-services-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .yabiz-services-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .yabiz-services-arrow.prev {
    left: 2px;
  }

  .yabiz-services-arrow.next {
    right: 2px;
  }

  .yabiz-services-track {
    padding: 1.25rem 0.5rem 1.75rem 0.5rem;
    gap: 1.15rem;
  }

  .yabiz-service-card {
    flex: 0 0 220px;
    width: 220px;
    height: 345px;
    padding: 1.5rem 1.15rem;
  }

  .yabiz-service-name {
    font-size: 1.28rem;
  }

  .yabiz-service-btn {
    font-size: 0.7rem;
    padding: 0.5rem 1.15rem;
  }
}

@media (max-width: 480px) {
  .yabiz-service-card {
    flex: 0 0 205px;
    width: 205px;
    height: 330px;
    padding: 1.35rem 1rem;
  }

  .yabiz-service-name {
    font-size: 1.2rem;
  }
}
