/* Reusable full-page loader: static logo + accent spinner.
   Any template can use it by including the #page-loader markup and
   loading loader.js — it hides itself once the page finishes loading. */

.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--navy);
    transition: opacity 0.4s ease;
}

.loader--hidden {
    opacity: 0;
    pointer-events: none;
}

.loader__logo {
    width: 220px;
    height: auto;
}

.loader__spinner {
    width: 32px;
    height: 32px;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}
