/* Mobil menü: Hizmetlerimiz accordion ok animasyonu */
details.mobile-nav-services[open] .mobile-nav-chevron {
  transform: rotate(180deg);
}

/* Before / After karşılaştırma slider */
.ba-compare {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
  user-select: none;
  touch-action: none;
}

.ba-compare .ba-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-compare .ba-after {
  position: relative;
  z-index: 1;
}

.ba-before-layer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  max-width: 100%;
}

.ba-before-layer .ba-before {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--ba-width, 100%);
  max-width: none;
  height: 100%;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 12px rgba(15, 23, 42, 0.35);
  z-index: 4;
  pointer-events: none;
}

.ba-handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.ba-handle-grip::before,
.ba-handle-grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: translateY(-50%);
}

.ba-handle-grip::before {
  left: 10px;
  border-right: 6px solid #2563eb;
}

.ba-handle-grip::after {
  right: 10px;
  border-left: 6px solid #2563eb;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.ba-badge {
  position: absolute;
  top: 1rem;
  z-index: 3;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 9999px;
  pointer-events: none;
}

.ba-badge-before {
  left: 1rem;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
}

.ba-badge-after {
  right: 1rem;
  background: rgba(37, 99, 235, 0.9);
  color: #fff;
}

.ba-carousel-viewport {
  min-height: 12rem;
}

@media (min-width: 640px) {
  .ba-nav {
    top: 42% !important;
  }
}

/* Galeri */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.92);
  padding: 1rem;
}

.gallery-lightbox.hidden {
  display: none;
}

.gallery-lightbox-inner {
  max-width: min(100%, 56rem);
  width: 100%;
}

.gallery-lightbox-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.2s;
}

.gallery-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
}

.gallery-lightbox-prev {
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
}

.gallery-lightbox-next {
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
}

@media (min-width: 640px) {
  .gallery-lightbox-prev {
    left: 1.5rem;
  }
  .gallery-lightbox-next {
    right: 1.5rem;
  }
}
