/* The Nursing Compass — Coming Soon */

:root {
  --cream: #fcfbf7; /* matches the logo background */
  --teal:  #0d4a47;
  --sage:  #7d9a83;
  --gold:  #c9a15a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--cream);
  color: var(--teal);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Logo */
.logo {
  display: block;
  width: min(340px, 78vw);
  height: auto;
  opacity: 0;
  transform: translateY(12px);
}

/* Loading bar */
.loader {
  width: min(220px, 60vw);
  height: 3px;
  margin-top: 36px;
  background: rgba(13, 74, 71, .12);
  border-radius: 3px;
  overflow: hidden;
  opacity: 0;
}
.loader span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--teal));
  transform: translateX(-100%);
}

/* "Coming soon ..." */
.soon {
  margin-top: 22px;
  font-weight: 600;
  font-size: clamp(.9rem, 2.6vw, 1.05rem);
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--sage);
  opacity: 0;
}
.dots i { font-style: normal; opacity: 0; }

/* Animations start once js/main.js adds .is-ready (fallback: .no-js below) */
.is-ready .logo        { animation: rise 1.1s ease-out .1s forwards; }
.is-ready .loader      { animation: fade .6s ease-out 1s forwards; }
.is-ready .loader span { animation: slide 1.6s ease-in-out 1s infinite; }
.is-ready .soon        { animation: fade .8s ease-out 2.2s forwards; }
.is-ready .dots i      { animation: blink 1.5s infinite; }
.is-ready .dots i:nth-child(2) { animation-delay: .25s; }
.is-ready .dots i:nth-child(3) { animation-delay: .5s; }

@keyframes rise  { to { opacity: 1; transform: none; } }
@keyframes fade  { to { opacity: 1; } }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes blink { 0%, 100% { opacity: 0; } 40%, 60% { opacity: 1; } }

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
  .logo, .loader, .soon, .dots i { animation: none !important; opacity: 1; transform: none; }
  .loader span { animation: none !important; transform: none; width: 100%; }
}
