/*
 * V5.8 — tam menü görünürlüğü, dengeli masaüstü header,
 * tek aktif scroll-spy ve yinelenmeyen hizmet kartları.
 */

/* Masaüstünde hiçbir menü öğesi kırpılmaz; telefon alanı önce geri çekilir. */
@media (min-width:921px){
  .template-kids .site-header,
  .service-detail-page .site-header{
    overflow:visible!important;
  }

  .template-kids .site-header .header-inner,
  .service-detail-page .site-header .header-inner,
  .template-kids.smart-header .site-header.is-scrolled .header-inner,
  .service-detail-page.smart-header .site-header.is-scrolled .header-inner{
    display:grid!important;
    grid-template-columns:minmax(166px,196px) minmax(0,1fr) auto!important;
    width:min(calc(100% - 42px),1760px)!important;
    min-height:86px!important;
    gap:12px!important;
    padding-inline:20px 16px!important;
    overflow:visible!important;
  }

  .template-kids .site-header .brand,
  .service-detail-page .site-header .brand{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding-left:12px!important;
    justify-content:flex-start!important;
  }

  .template-kids .site-header .main-nav,
  .service-detail-page .site-header .main-nav{
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    justify-content:center!important;
    align-items:center!important;
    gap:clamp(2px,.28vw,6px)!important;
    overflow:visible!important;
  }

  .template-kids .site-header .main-nav>a,
  .service-detail-page .site-header .main-nav>a{
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:max-content!important;
    padding:11px clamp(7px,.47vw,11px)!important;
    font-family:var(--body-font,"Plus Jakarta Sans",sans-serif)!important;
    font-size:clamp(13.2px,.76vw,15.4px)!important;
    line-height:1!important;
    font-weight:800!important;
    letter-spacing:-.032em!important;
    white-space:nowrap!important;
  }

  /* İletişim son öğe olsa da her masaüstü çözünürlüğünde görünür kalır. */
  .template-kids .site-header .main-nav>a:last-child,
  .service-detail-page .site-header .main-nav>a:last-child{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
  }

  .template-kids .site-header .header-actions,
  .service-detail-page .site-header .header-actions{
    min-width:max-content!important;
    gap:9px!important;
  }
}

/* Telefon kutusu menüyü daraltmadan önce gizlenir. */
@media (min-width:921px) and (max-width:1510px){
  .template-kids .site-header .phone-link,
  .service-detail-page .site-header .phone-link{
    display:none!important;
  }

  .template-kids .site-header .header-inner,
  .service-detail-page .site-header .header-inner,
  .template-kids.smart-header .site-header.is-scrolled .header-inner,
  .service-detail-page.smart-header .site-header.is-scrolled .header-inner{
    grid-template-columns:174px minmax(0,1fr) auto!important;
    width:min(calc(100% - 24px),1480px)!important;
    padding-inline:12px!important;
    gap:8px!important;
  }
}

@media (min-width:921px) and (max-width:1240px){
  .template-kids .site-header .header-inner,
  .service-detail-page .site-header .header-inner,
  .template-kids.smart-header .site-header.is-scrolled .header-inner,
  .service-detail-page.smart-header .site-header.is-scrolled .header-inner{
    grid-template-columns:148px minmax(0,1fr) auto!important;
  }

  .template-kids .site-header .brand,
  .service-detail-page .site-header .brand{
    padding-left:5px!important;
  }

  .template-kids .site-header .brand span,
  .service-detail-page .site-header .brand span{
    display:none!important;
  }

  .template-kids .site-header .brand img,
  .service-detail-page .site-header .brand img{
    width:108px!important;
    max-width:108px!important;
  }

  .template-kids .site-header .main-nav>a,
  .service-detail-page .site-header .main-nav>a{
    padding-inline:6px!important;
    font-size:12.8px!important;
  }

  .template-kids .site-header .character-theme-switch,
  .service-detail-page .site-header .character-theme-switch{
    transform:scale(.9)!important;
    transform-origin:right center!important;
  }
}

/* Dar masaüstünde menü küçültülmez; sağ kontrol alanı kapanır. */
@media (min-width:921px) and (max-width:1080px){
  .template-kids .site-header .header-inner,
  .service-detail-page .site-header .header-inner,
  .template-kids.smart-header .site-header.is-scrolled .header-inner,
  .service-detail-page.smart-header .site-header.is-scrolled .header-inner{
    grid-template-columns:132px minmax(0,1fr) 0!important;
    gap:4px!important;
  }

  .template-kids .site-header .header-actions,
  .service-detail-page .site-header .header-actions{
    display:none!important;
  }

  .template-kids .site-header .main-nav>a,
  .service-detail-page .site-header .main-nav>a{
    padding-inline:5px!important;
    font-size:12.3px!important;
  }
}

/* Scroll-spy yalnızca bir öğeyi vurgular; eski hash kalıntıları görsel üretmez. */
.template-kids .main-nav>a.is-active,
.template-kids .mobile-native-links>a.is-active{
  color:var(--primary)!important;
}

/* Hizmet kartları listede tekilleştirilir ve layout sabit kalır. */
.template-kids .home56-services-grid{
  align-items:stretch!important;
}
.template-kids .home56-service-card{
  height:100%!important;
  min-height:132px!important;
}
