/* 9WING.PRO – responsive single-layer background for iOS Safari, Android & desktop.
 * Keep /9wing.webp as the only background source; never attach an image to body.
 * This file loads last to override the historical inline background rule.
 */
html { background: #030508; }
body {
  background-color: #030508 !important;
  background-image: none !important;
  background-attachment: scroll !important;
  overflow-x: clip;
}
/* Fixed elements with CSS transforms may behave differently on iOS Safari.
 * Use a static fixed plane, with no JS parallax transformation. */
.site-bg {
  position: fixed !important;
  z-index: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;             /* older iOS fallback */
  height: 100svh !important;            /* stable mobile browser viewport */
  background-color: #030508 !important;
  background-image: linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)), url('/9wing.webp') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  transform: none !important;
  -webkit-transform: none !important;
  will-change: auto !important;
  pointer-events: none !important;
}
.site-bg::after { content: none !important; }
/* Above the background, below existing nav, mobile drawer, and popups. */
body > main, body > footer { position: relative; z-index: 1; }
.nav { -webkit-backdrop-filter: blur(18px); }
@media (max-width: 900px) {
  .nav { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .nav-links { max-height: calc(100svh - 115px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .hero { min-height: min(100svh, 950px); padding-top: calc(135px + env(safe-area-inset-top, 0px)); padding-bottom: 90px; }
  .hero h1 { font-size: clamp(35px, 10vw, 68px); overflow-wrap: anywhere; }
  .btn-group .btn { max-width: 100%; text-align: center; }
  .floating-contact { bottom: max(18px, env(safe-area-inset-bottom)); }
  .user-login-dialog { max-height: calc(100svh - 16px); }
}
@media (max-width: 430px) {
  .btn-group { display: grid; grid-template-columns: 1fr; width: min(100%, 340px); margin: 0 auto; }
  .btn-group .btn { width: 100%; min-height: 50px; padding: 10px 14px; }
  .section { padding-left: 14px; padding-right: 14px; }
}
@media (orientation: landscape) and (max-height: 480px) {
  .hero { padding-top: 120px; }
  .user-login-dialog { height: calc(100svh - 12px); }
}
@supports not (height: 100svh) {
  .site-bg { height: 100vh !important; }
  .nav-links { max-height: calc(100vh - 115px); }
}
