/* ============================================================
   SADRA — Page transitions
   Subtle entrance fade on every page + brand loader overlay
   between internal page navigations. Pure CSS entrance (works
   without JS), JS only intercepts internal link clicks.
   ============================================================ */

@keyframes sadraPageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes sadraSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: no-preference) {
  body {
    animation: sadraPageIn .35s ease-out both;
  }
}

/* outgoing loader overlay (injected by transitions.js on click) */
.sadra-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}
.sadra-loader.is-on {
  opacity: 1;
  pointer-events: all;
}
.sadra-loader img {
  width: 76px;
  height: auto;
  display: block;
}
.sadra-loader__spin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(225, 29, 46, .15);
  border-top-color: #E11D2E;
  animation: sadraSpin .8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .sadra-loader { display: none; }
}
