/* ============================================================
   Preloader — the full-screen navy card header.php draws for visitors
   until the page loads (js/custom.js fades it out).

   Lifted out of the old theme's style.css unchanged, so the designed pages
   can drop that sheet (consistency audit CA-2.11) and keep the preloader.
   Pages still on style.css get these rules from there as well; the two
   copies are identical, so loading both is harmless.
   ============================================================ */

#preloader {
  display: flex;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  width: 100%;
  height: 100%;
  overflow: visible;
  background: #ffff;
}

#preloader .content {
  position: relative;
  width: 450px;
  height: 330px;
  margin: auto;
  background: #162D54 url("../assets/img/logo-preloader.jpg") no-repeat center center;
  background-size: 110px;
}

#preloader .spinner {
  width: 40px;
  height: 40px;
  position: absolute;
  left: 50%;
  top: 55%;
  border: 5px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  margin-top: 60px;
  margin-left: -15px;
}

#elementor-editor-wrapper #preloader {
  display: none !important;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
