/* Splash loader demos – pick one style for production */

.wg-splash-demo-page {
  min-height: 100svh;
  background: var(--wg-bg-soft, #f5f0e8);
  color: var(--wg-text, #3d3a34);
  font-family: var(--wg-font-sans, 'Outfit', sans-serif);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.wg-splash-demo-page h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.wg-splash-demo-page .wg-splash-demo-lead {
  font-size: 0.88rem;
  color: var(--wg-text-muted, #6b655c);
  max-width: 42ch;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.wg-splash-demo-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .wg-splash-demo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wg-splash-demo-card {
  border: 1px solid var(--wg-border, rgba(61, 58, 52, 0.12));
  border-radius: 14px;
  padding: 1.1rem;
  background: #fff;
}

.wg-splash-demo-card h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.wg-splash-demo-card p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--wg-text-muted);
  margin: 0 0 0.85rem;
  min-height: 3.2em;
}

.wg-splash-demo-play {
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--wg-text, #3d3a34);
  color: #fff;
  transition: transform 0.25s var(--wg-ease, ease), opacity 0.25s;
}

.wg-splash-demo-play:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.wg-splash-demo-back {
  display: inline-flex;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--wg-gold-olive, #9a7b28);
  text-decoration: none;
}

.wg-splash-demo-back:hover {
  text-decoration: underline;
}

/* Fullscreen overlay shell */
.wg-splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.wg-splash-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wg-splash-overlay__inner {
  text-align: center;
  max-width: 22rem;
}

.wg-splash-overlay__logo {
  width: clamp(4.5rem, 18vw, 6.5rem);
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.wg-splash-overlay__wordmark {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  opacity: 0;
}

.wg-splash-overlay__phrase {
  margin: 0;
  min-height: 1.4em;
}

.wg-splash-overlay__skip {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
}

.wg-splash-overlay__skip:hover {
  opacity: 0.9;
}

/* Style A – Savanna fade + typewriter */
.wg-splash-overlay--a {
  background: linear-gradient(165deg, #0f1a14 0%, #1a2e22 45%, #0d1410 100%);
  color: rgba(255, 255, 255, 0.92);
}

.wg-splash-overlay--a .wg-splash-overlay__logo {
  opacity: 0;
  transform: scale(0.82);
}

.wg-splash-overlay--a.is-active .wg-splash-overlay__logo {
  animation: wgSplashALogo 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wg-splash-overlay--a .wg-splash-overlay__wordmark {
  color: rgba(255, 255, 255, 0.55);
}

.wg-splash-overlay--a.is-active .wg-splash-overlay__wordmark {
  animation: wgSplashAFade 0.32s ease 0.16s forwards;
}

.wg-splash-overlay--a .wg-splash-overlay__phrase {
  font-family: var(--wg-font-sans);
  font-size: clamp(0.84rem, 2.85vw, 0.98rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  max-width: 18ch;
  margin: 0 auto;
}

.wg-splash-overlay--a .wg-splash-overlay__phrase.is-typing {
  border-right: 2px solid var(--wg-gold-lt, #e8c547);
  padding-right: 2px;
  animation: wgSplashCaret 0.85s step-end infinite;
}

.wg-splash-overlay--a .wg-splash-overlay__phrase.is-done {
  border-right: none;
}

@keyframes wgSplashCaret {
  50% {
    border-color: transparent;
  }
}

@keyframes wgSplashALogo {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes wgSplashAFade {
  to { opacity: 1; }
}

@keyframes wgSplashAPhraseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wgSplashAPhraseOut {
  to {
    opacity: 0;
    transform: translateY(-5px);
  }
}

/* Style B – Warm paper + signature reveal */
.wg-splash-overlay--b {
  background: linear-gradient(180deg, #f7f0e4 0%, #ebe3d4 100%);
  color: var(--wg-text);
}

.wg-splash-overlay--b .wg-splash-overlay__logo {
  opacity: 0;
  transform: translateY(24px);
}

.wg-splash-overlay--b.is-active .wg-splash-overlay__logo {
  animation: wgSplashBLogo 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wg-splash-overlay--b .wg-splash-overlay__wordmark {
  color: var(--wg-gold-olive);
}

.wg-splash-overlay--b.is-active .wg-splash-overlay__wordmark {
  animation: wgSplashAFade 0.45s ease 0.4s forwards;
}

.wg-splash-overlay--b .wg-splash-overlay__phrase {
  font-family: var(--wg-font-sans);
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
  color: var(--wg-gold-olive);
  clip-path: inset(0 100% 0 0);
}

.wg-splash-overlay--b.is-active .wg-splash-overlay__phrase {
  animation: wgSplashBReveal 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

@keyframes wgSplashBLogo {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wgSplashBReveal {
  to { clip-path: inset(0 0 0 0); }
}

/* Style C – Horizon wipe + phrase cycle */
.wg-splash-overlay--c {
  background: #87a8c4;
  color: #fff;
  overflow: hidden;
}

.wg-splash-overlay--c::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 20, 16, 0.75) 0%, transparent 55%),
    url('../images/destinations/serengeti-national-park-gallery-1.jpg') center / cover no-repeat;
  transform: scale(1.08);
  opacity: 0.85;
}

.wg-splash-overlay--c::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(8, 12, 10, 0.92);
  transform: translate(-50%, -50%);
  z-index: 0;
}

.wg-splash-overlay--c.is-active::after {
  animation: wgSplashCWipe 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wg-splash-overlay--c .wg-splash-overlay__inner {
  position: relative;
  z-index: 1;
}

.wg-splash-overlay--c .wg-splash-overlay__logo {
  opacity: 0;
  transform: scale(0.6) rotate(-12deg);
}

.wg-splash-overlay--c.is-active .wg-splash-overlay__logo {
  animation: wgSplashCLogo 0.75s cubic-bezier(0.34, 1.2, 0.48, 1) 0.45s forwards;
}

.wg-splash-overlay--c .wg-splash-overlay__wordmark {
  color: rgba(255, 255, 255, 0.65);
}

.wg-splash-overlay--c.is-active .wg-splash-overlay__wordmark {
  animation: wgSplashAFade 0.45s ease 0.85s forwards;
}

.wg-splash-overlay--c .wg-splash-overlay__phrase {
  font-family: var(--wg-font-sans);
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
}

.wg-splash-overlay--c.is-active .wg-splash-overlay__phrase {
  animation: wgSplashCPhrase 0.55s ease 1s forwards;
}

.wg-splash-overlay--c.is-cycling .wg-splash-overlay__phrase {
  animation: wgSplashCPhraseSwap 0.45s ease;
}

@keyframes wgSplashCWipe {
  to {
    width: 280vmax;
    height: 280vmax;
  }
}

@keyframes wgSplashCLogo {
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes wgSplashCPhrase {
  to { opacity: 1; }
}

@keyframes wgSplashCPhraseSwap {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .wg-splash-overlay,
  .wg-splash-overlay--a.is-active .wg-splash-overlay__phrase,
  .wg-splash-overlay--b.is-active .wg-splash-overlay__phrase,
  .wg-splash-overlay--c::after,
  .wg-splash-overlay--c.is-active .wg-splash-overlay__logo {
    animation: none !important;
    transition: none !important;
  }

  .wg-splash-overlay--a .wg-splash-overlay__logo,
  .wg-splash-overlay--b .wg-splash-overlay__logo,
  .wg-splash-overlay--c .wg-splash-overlay__logo,
  .wg-splash-overlay__wordmark,
  .wg-splash-overlay--a .wg-splash-overlay__phrase,
  .wg-splash-overlay--b .wg-splash-overlay__phrase,
  .wg-splash-overlay--c .wg-splash-overlay__phrase {
    opacity: 1 !important;
    transform: none !important;
    width: auto !important;
    clip-path: none !important;
    border: none !important;
  }
}
