/**
 * Simya Diş – Responsive (mobil odaklı, görsel/grid düzenine dokunmaz)
 * Footer alt boşluk + mobil taşma + header düzeltmeleri
 */

:root {
  --simya-container-px: clamp(1rem, 4.2vw, 1.5rem);
}

/* Mobil düzen → css/simya-mobile.css (header, hero, grid, footer) */

#wrapper {
  min-height: 0 !important;
  height: auto !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

#content {
  flex: 0 0 auto !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

html,
body {
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

footer.footer-apple .footer-apple__brand {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

@media (min-width: 992px) {
  footer.footer-apple .footer-apple__grid,
  footer.footer-apple .footer-apple__col,
  footer.footer-apple .container {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 1200px) {
  footer.footer-apple .footer-apple__brand {
    margin-left: -1.5rem !important;
  }
}

#wrapper > footer.footer-apple:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

footer,
footer.footer-apple {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

footer.footer-apple .footer-apple__grid {
  padding-bottom: 0.75rem !important;
}

footer.footer-apple .footer-apple__bottom {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0.75rem !important;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px)) !important;
}

footer.footer-apple .footer-apple__bottom .container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

footer.footer-apple .footer-apple__copyright {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 767px) {
  footer.footer-apple .footer-apple__grid {
    padding-bottom: 0.5rem !important;
  }

  footer.footer-apple .footer-apple__col {
    padding-bottom: 0.75rem !important;
  }

  footer.footer-apple .footer-apple__bottom {
    padding-top: 0.625rem !important;
    padding-bottom: max(0.375rem, env(safe-area-inset-bottom, 0px)) !important;
  }
}

.wa-float-wrap,
#back-to-top,
#de-loader.simya-splash {
  pointer-events: auto;
}

@media (max-width: 991px) {
  body.mobile-drawer-open .wa-float-wrap,
  body.mobile-drawer-open #back-to-top {
    z-index: 1000 !important;
  }
}

/* Masaüstü görsel oranları */
@media (min-width: 992px) {
  #content .w-80 {
    width: 80% !important;
    max-width: none !important;
  }

  #content .w-60 {
    width: 60% !important;
    max-width: none !important;
  }

  #content .col-6.text-end {
    text-align: right !important;
  }
}
