/* SALTDUŞ V6.5 — stable service layout in Safari/WebKit.
   Scoped to Hizmetler so the approved V6.4 design and animations elsewhere stay intact. */

/* Safari can leave transformed IntersectionObserver targets unpainted after scroll.
   Content must remain visible, even when the observer is delayed or never fires. */
body.page-hizmetler main [data-reveal],
html.motion-enabled body.page-hizmetler main [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  -webkit-transform: none !important;
  transition: none !important;
  -webkit-transition: none !important;
  animation: none !important;
}

/* Keep every service row in normal page flow rather than relying on a
   flex-child grid with an aspect-ratio wrapper and a 100%-height image.
   The latter can produce cyclic intrinsic-height calculations in WebKit. */
body.page-hizmetler .service-list {
  display: block;
}
body.page-hizmetler .service-item {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(25px, 5vw, 64px);
  position: relative;
  min-height: 0;
  height: auto;
  overflow: visible;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
body.page-hizmetler .service-item:first-child { padding-top: 0; }
body.page-hizmetler .service-pic {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  min-height: 0;
  overflow: hidden;
  background: var(--soft);
}
body.page-hizmetler .service-pic img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1.8 / 1;
  object-fit: cover;
  object-position: center;
}
body.page-hizmetler .service-text {
  min-width: 0;
  position: relative;
}
/* Ensure the footer follows all five services even with WebKit repaint delays. */
body.page-hizmetler main,
body.page-hizmetler main > section {
  position: relative;
}
body.page-hizmetler .footer {
  position: relative;
  clear: both;
}

@media (max-width: 740px) {
  body.page-hizmetler .service-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  body.page-hizmetler .service-pic img { aspect-ratio: 1.9 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  body.page-hizmetler .service-item { transition: none !important; }
}
