/* =====================================================================
   THE VERA – LUXURY STAY | INTRO SPLASH SCREEN STYLES
   60fps hardware-accelerated animations, SVG stroke draw, text reveal
   ===================================================================== */

#vera-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #2A5A52; /* Initial Deep Forest Green */
  transition: background-color 0.8s cubic-bezier(0.65, 0, 0.35, 1),
              transform 0.9s cubic-bezier(0.77, 0, 0.175, 1),
              opacity 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform, opacity, background-color;
  user-select: none;
}

#vera-splash.dark-phase {
  background-color: #0B1512; /* Dark luxury phase */
}

#vera-splash.dismissed {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Background ambient luxury glow */
.splash-ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 161, 92, 0.15) 0%, rgba(42, 90, 82, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

#vera-splash.dark-phase .splash-ambient-glow {
  opacity: 1;
  transform: scale(1.2);
}

/* Skip Button */
.splash-skip-btn {
  position: absolute;
  top: 28px;
  right: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #F8F9FA;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
}

.splash-skip-btn:hover {
  background: rgba(232, 161, 92, 0.25);
  border-color: #E8A15C;
  color: #E8A15C;
  transform: translateY(-1px);
}

/* Splash Container */
.splash-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  padding: 20px;
}

/* 1. MONOGRAM ARCH / CROWN SVG */
.splash-logo-symbol {
  width: 130px;
  height: 130px;
  min-width: 130px;
  min-height: 130px;
  max-width: 130px;
  max-height: 130px;
  aspect-ratio: 1 / 1;
  flex: 0 0 130px;
  box-sizing: border-box;
  margin-bottom: 24px;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-arch-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Stroke drawing phase */
.splash-arch-path {
  fill: transparent;
  stroke: var(--splash-arch-color, #ffffff);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: splashStrokeDraw 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.2s;
  transition: fill 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
}

.splash-monogram-v {
  fill: transparent;
  stroke: var(--splash-monogram-color, #E8A15C);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: splashStrokeDraw 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.4s;
  transition: fill 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
}

/* Pop & Fill Triggered in JS */
.splash-logo-symbol.filled .splash-arch-path {
  fill: rgba(255, 255, 255, 0.08);
  stroke: var(--splash-arch-color, #ffffff);
}

.splash-logo-symbol.filled .splash-monogram-v {
  fill: var(--splash-monogram-color, #E8A15C);
  stroke: var(--splash-monogram-color, #E8A15C);
  filter: drop-shadow(0 0 12px rgba(232, 161, 92, 0.6));
}

.splash-monogram-text {
  fill: transparent;
  stroke: var(--splash-monogram-color, #E8A15C);
  stroke-width: 1.5;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  dominant-baseline: central;
  opacity: 0;
  transition: opacity 0.5s ease, fill 0.6s ease;
}

.splash-logo-symbol.filled .splash-monogram-text {
  opacity: 1;
  fill: var(--splash-monogram-color, #E8A15C);
  filter: drop-shadow(0 0 12px rgba(232, 161, 92, 0.6));
}

.splash-logo-symbol.filled {
  animation: splashSymbolPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Custom Uploaded Logo in Splash - Guaranteed Perfect Circle */
.splash-custom-logo-wrap {
  width: 130px;
  height: 130px;
  min-width: 130px;
  min-height: 130px;
  max-width: 130px;
  max-height: 130px;
  aspect-ratio: 1 / 1;
  flex: 0 0 130px;
  box-sizing: border-box;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--splash-arch-color, rgba(255, 255, 255, 0.65));
  box-shadow: 0 0 35px rgba(232, 161, 92, 0.45), inset 0 0 15px rgba(232, 161, 92, 0.15);
  animation: splashSymbolPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  overflow: hidden;
  padding: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.splash-custom-logo-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center center;
  border-radius: 50%;
  display: block;
  margin: auto;
  box-sizing: border-box;
  filter: drop-shadow(0 4px 16px rgba(232, 161, 92, 0.4));
}

/* 2. TYPOGRAPHY: THE VERA */
.splash-wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 1.1;
}

.splash-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(120%) rotate(4deg);
  will-change: transform, opacity;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash-char.space {
  width: 0.35em;
}

.splash-char.revealed {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* 3. WARM ORANGE ACCENT DOT */
.splash-accent-dot {
  display: inline-block;
  width: clamp(8px, 1.2vw, 12px);
  height: clamp(8px, 1.2vw, 12px);
  border-radius: 50%;
  background: var(--splash-monogram-color, #E8A15C);
  box-shadow: 0 0 14px var(--splash-monogram-color, rgba(232, 161, 92, 0.9)), 0 0 24px rgba(232, 161, 92, 0.5);
  margin-left: 6px;
  transform: scale(0) translateY(10px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
}

.splash-accent-dot.popped {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* 4. SUBTITLE: LUXURY STAY */
.splash-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(10px, 1.6vw, 13px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              letter-spacing 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash-subtitle.revealed {
  opacity: 1;
  transform: translateY(0);
  letter-spacing: 0.42em;
}

/* Thin ornamental divider below subtitle */
.splash-divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--splash-monogram-color, rgba(232, 161, 92, 0.8)), transparent);
  margin-top: 18px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash-divider.revealed {
  width: 140px;
}

/* KEYFRAMES */
@keyframes splashStrokeDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes splashSymbolPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #vera-splash {
    transition: opacity 0.4s ease;
  }
  .splash-arch-path, .splash-monogram-v {
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }
  .splash-char {
    transform: none !important;
    transition: opacity 0.3s ease !important;
  }
}
