/* Vertex – Mobil ve genel düzeltmeler */

/* 1. Yatay kaymayı kaldır (sayfa sola-sağa oynamasın) */
html, body {
  overflow-x: hidden;
}
.page_wrapper {
  overflow-x: hidden;
}
/* Mobil menü açıkken arka plan scroll olmasın, düzgün görünsün */
body.mobile_menu_open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* 2. Açılır menü ile header arasındaki boşluğu kaldır */
@media screen and (max-width: 991px) {
  .site_header .main_menu {
    top: 94px;
    left: 0;
    right: 0;
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }
  .site_header.sticky .main_menu {
    top: 82px;
  }
  .site_header .main_menu_inner {
    padding: 0;
    border-radius: 0;
  }
  .site_header .main_menu_list {
    margin-top: 0;
    border-radius: 0;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site_header .main_menu_inner {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .mobile_menu_portal_item {
    border-top: 1px solid var(--bs-border-color);
    margin-top: 4px;
    padding-top: 4px;
  }
  .mobile_menu_portal_item .nav-link {
    font-weight: 600;
  }
  /* Mobil menü: dark + dil Client Portal altında (HTML’de </ul> sonrası) */
  /* Masaüstünde header’daki dark + lang; mobilde menü içinde göster */
  .site_header .header_btns_group .header_mobile_hide_actions {
    display: none !important;
  }
  .site_header .main_menu_list .mobile_menu_lang_item .nav-link {
    display: flex;
    align-items: center;
  }
  .site_header .main_menu_list .mobile_menu_lang_item .dropdown-menu {
    margin-top: 0;
    border-radius: 0;
  }
  .site_header .header_btns_group > li:last-child {
    display: inline-block !important;
  }
  .site_header .header_btns_group {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .site_header .header_btns_group .dark_mode_toggle {
    padding: 8px 12px;
    margin: 0;
  }
  .site_header .header_btns_group .lang_switcher_wrap .lang_switcher_btn {
    padding: 8px 12px;
    font-size: 14px;
  }
  .site_header .header_btns_group .btn {
    padding: 0 14px;
    font-size: 14px;
  }
  .site_header .header_btns_group .btn .btn_label {
    padding: 12px 0 10px;
  }
}

@media screen and (min-width: 992px) {
  .mobile_menu_close_row {
    display: none !important;
  }
  .mobile_menu_lang_item {
    display: none !important;
  }
}

/* 3. Mobilde portfolio bölümü görünsün */
@media screen and (max-width: 991px) {
  .portfolio_section,
  .portfolio_section.xb-hidden {
    display: block !important;
    overflow: visible;
  }
  .portfolio_section:has(.portfolio_carousel) + .review_section {
    padding-top: 80px;
    margin-top: 0;
  }
  .portfolio_carousel {
    overflow: visible;
  }
}

/* 4. Mobilde header logosunu büyüt
   NEDEN KÜÇÜK KALIYORDU: style.css’te “img { max-width: 100% }” var; logo col-5 genişliğine
   sıkışıyordu. Footer’da .footer_logo img için max-height: 92px var, container geniş olduğu
   için orada büyük. Burada max-width: 100%’i kaldırıp sabit yükseklik veriyoruz. */
@media screen and (max-width: 991px) {
  .site_header .header_bottom .row > [class*="col"]:first-child,
  .site_header .site_logo {
    overflow: visible !important;
  }
  .site_header .header_bottom .site_logo .site_link,
  .site_header .site_logo .site_link,
  .site_header .stricked-menu .site_logo .site_link {
    max-width: none !important;
    width: auto !important;
    overflow: visible !important;
    display: block !important;
  }
  .site_header .header_bottom .site_logo .site_link img,
  .site_header .site_logo .site_link img,
  .site_header .stricked-menu .site_logo .site_link img {
    max-width: none !important;
    width: auto !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    object-fit: contain;
  }
}

/* Mobilde Client Portal’ı header’daki ok/butondan kaldır; menü içinde gösterilecek */
@media screen and (max-width: 991px) {
  .site_header .header_btns_group > li:last-child {
    display: none !important;
  }
}

@media screen and (max-width: 575px) {
  .site_header .header_bottom .site_logo .site_link img,
  .site_header .site_logo .site_link img,
  .site_header .stricked-menu .site_logo .site_link img {
    height: 84px !important;
    min-height: 84px !important;
    max-height: 84px !important;
  }
}

/* 5. Ön yükleyici: beyaz arka plan, logo yuvarlağın tam ortasında ve büyük
   NEDEN KÜÇÜK/ORTADA DEĞİLDİ: (1) style.css “img { max-width: 100% }” preloader img’i de
   sınırlıyordu. (2) transform: none logo merkezi kaydırıyordu; translate(-50%,-50%) ile tam orta. */
.preloader {
  background-color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.preloader .loader-line:before {
  background-color: #ffffff !important;
}
.preloader .loader-line {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.04)) !important;
}
.preloader .loader-logo img {
  filter: none !important;
}
.preloader .loader-circle {
  width: 200px !important;
  height: 200px !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
  position: relative !important;
}
.preloader .loader-logo {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 200px !important;
  height: 200px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%) !important;
}
.preloader .loader-logo img {
  max-width: none !important;
  width: 180px !important;
  height: auto !important;
  min-width: 160px !important;
  object-fit: contain;
  display: block;
}
/* Mobil: daireyi gizle, logo tam ortada, yanıp sönsün */
@media screen and (max-width: 991px) {
  .preloader {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999;
  }
  .preloader .loader-circle {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .preloader .loader-line-mask {
    display: none !important;
  }
  .preloader .loader-logo {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
  }
  .preloader .loader-logo img {
    width: 160px !important;
    max-width: 55vw !important;
    min-width: 120px !important;
    animation: preloaderLogoBlink 1.2s ease-in-out infinite;
  }
}
@keyframes preloaderLogoBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* 6. Ana sayfa SVG dekoratif entegrasyonları */
.it_solution_hero_content {
  position: relative;
}
.hero_tech_network_deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero_tech_network_deco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
}
.it_solution_hero_content > *:not(.hero_tech_network_deco) {
  position: relative;
  z-index: 1;
}

.section_accent_strip {
  line-height: 0;
  max-height: 80px;
  overflow: hidden;
  background: transparent;
}
.section_accent_strip img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.heading_focus_text .service_badge_deco {
  display: inline-flex;
  align-items: center;
  width: 40px;
  height: 40px;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}
.heading_focus_text .service_badge_deco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.service_section .heading_block .heading_focus_text {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* 7. Footer – ödeme yöntemleri ikonları (SVG, yüksek kalite) */
.footer_payment_methods {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  margin-top: 2rem;
}
.footer_payment_label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer_payment_icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer_payment_icons li {
  display: flex;
  align-items: center;
}
.footer_payment_icons img {
  height: 28px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
/* Mastercard SVG has brand colors – don’t invert */
.footer_payment_icons li:nth-child(2) img {
  filter: none;
  opacity: 1;
}
@media screen and (max-width: 575px) {
  .footer_payment_icons img {
    height: 24px;
    max-width: 44px;
  }
}
