/* UYUM | RESPONSIVE / REPEATING MOTION / QUICK ACTIONS */

/* Yatay sayfa taşmalarını engelle */
html,
body{
  max-width:100%;
}

html{
  overflow-x:clip;
}

body{
  overflow-x:clip;
}

/* Hizmetler mobil kart genişliği */
@media(max-width:767px){
  .us-services{
    max-width:100%;
    overflow:clip;
  }

  .us-services .container{
    min-width:0;
    max-width:100%;
  }

  .us-services .us-services-grid,
  .us-services .us-grid,
  .us-services .service-grid{
    grid-template-columns:minmax(0,1fr)!important;
    width:100%;
    max-width:100%;
  }

  .us-services .us-card,
  .us-services .us-service-card,
  .us-services .service-card{
    min-width:0;
    max-width:100%;
    width:100%;
    box-sizing:border-box;
  }
}

/* Görsel vitrin: otomatik ve sürüklenebilir.
   CSS marquee'yi JS hareket motoru yönetecek. */
.ug-gallery .ug-gallery-window{
  width:100%;
  max-width:100%;
  overflow:hidden!important;
  touch-action:pan-y;
  cursor:grab;
  overscroll-behavior-x:contain;
  -webkit-user-select:none;
  user-select:none;
}

.ug-gallery .ug-gallery-window.is-dragging{
  cursor:grabbing;
}

.ug-gallery .ug-gallery-track{
  animation:none!important;
  width:max-content;
  display:flex;
  will-change:transform;
}

.ug-gallery .ug-gallery-group{
  display:flex!important;
  flex:none;
}

.ug-gallery .ug-card{
  flex:none;
  scroll-snap-align:unset;
}

/* Kopyaların mobilde de görünmesi gerekiyor */
.ug-gallery .ug-gallery-group[aria-hidden="true"]{
  display:flex!important;
}

.ug-gallery .ug-card img{
  pointer-events:none;
}

@media(max-width:767px){
  .ug-gallery .ug-gallery-window{
    overflow:hidden!important;
    scroll-snap-type:none!important;
  }

  .ug-gallery .ug-card{
    width:min(78vw,330px);
    height:375px;
  }

  .ug-gallery .ug-gallery-group{
    gap:13px;
    padding-right:13px;
  }
}

/* Sağ alt sabit kontrol */
.uq-toolbar{
  position:fixed;
  z-index:900;
  right:clamp(14px,2.2vw,32px);
  bottom:clamp(17px,2.4vw,32px);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:15px;
}

.uq-control{
  position:relative;
  isolation:isolate;
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  padding:0;
  border:0;
  border-radius:50%;
  cursor:pointer;
  box-shadow:0 7px 22px rgba(6,35,48,.22);
  transition:
    transform .25s,
    box-shadow .25s,
    opacity .25s;
}

.uq-control svg{
  display:block;
  width:23px;
  height:23px;
}

.uq-whatsapp{
  background:#25d366;
  color:#fff;
}

.uq-phone{
  background:#1261a0;
  color:#fff;
}

.uq-control:hover:not(:disabled){
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 10px 27px rgba(6,35,48,.30);
}

/* Sonsuz nefes alma ve halka hareketi */
.uq-phone,
.uq-whatsapp{
  animation:uqBreathe 3.4s ease-in-out infinite;
}

.uq-whatsapp{
  animation-delay:-1.7s;
}

.uq-phone::before,
.uq-whatsapp::before{
  content:"";
  position:absolute;
  inset:-4px;
  border:2px solid currentColor;
  border-radius:50%;
  opacity:0;
  pointer-events:none;
  animation:uqRing 3.4s ease-out infinite;
}

.uq-whatsapp::before{
  animation-delay:-1.7s;
}

@keyframes uqBreathe{
  0%,100%{scale:1}
  50%{scale:1.065}
}

@keyframes uqRing{
  0%{transform:scale(.9);opacity:.45}
  70%,100%{transform:scale(1.32);opacity:0}
}

/* Telefon verilene kadar yanıltıcı bağlantı olmasın */
.uq-control:disabled{
  opacity:.60;
  cursor:not-allowed;
}

.uq-top{
  color:#fff;
  background:#0b2b3e;
  opacity:0;
  visibility:hidden;
  transform:translateY(15px);
  pointer-events:none;
}

.uq-top.is-shown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  pointer-events:auto;
}

.uq-top svg{
  width:21px;
  height:21px;
}

@media(max-width:767px){
  .uq-toolbar{
    right:13px;
    bottom:calc(18px + env(safe-area-inset-bottom,0px));
    gap:13px;
  }

  .uq-control{
    width:46px;
    height:46px;
  }

  .uq-control svg{
    width:21px;
    height:21px;
  }

  .uq-top svg{
    width:19px;
    height:19px;
  }
}

@media(prefers-reduced-motion:reduce){
  .ux-repeat-enter,
  .uq-phone,
  .uq-whatsapp,
  .uq-control::before{
    animation:none!important;
  }
}

/* Üç hızlı işlem tek grup olarak görünür */
.uq-toolbar:not(.is-shown){
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(25px)!important;
}

.uq-toolbar.is-shown{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translateY(0)!important;
}

.uq-toolbar .uq-top{
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
}

.uq-toolbar:not(.is-shown) .uq-control{
  animation-play-state:paused!important;
}


/* UYUM — TOOLBAR FINAL VISIBILITY FIX */

.uq-toolbar{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translate3d(0,25px,0)!important;
  transition:
    opacity .35s ease,
    transform .45s cubic-bezier(.22,1,.36,1),
    visibility .35s!important;
}

.uq-toolbar.uq-show-now{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translate3d(0,0,0)!important;
}

/* Üçü de aynı kapsayıcıyla görünür */
.uq-toolbar .uq-top,
.uq-toolbar .uq-top.is-shown{
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  pointer-events:auto!important;
}

/* Numara tanımlanmamış butonlar tıklanamaz */
.uq-toolbar .uq-control:disabled{
  pointer-events:none!important;
}
