/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Scroll line animation ── */
.scroll-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, white);
  animation: scrollDown 1.6s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: translateY(-100%); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* ── Stat cards float ── */
.stat-card {
  animation: float 4s ease-in-out infinite;
}
.stat-card:nth-child(2) { animation-delay: -1.3s; }
.stat-card:nth-child(3) { animation-delay: -2.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── Room card hover glow ── */
.room-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(168, 85, 127, 0.1);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.room-card:hover::after {
  opacity: 1;
}
.room-card { position: relative; }

/* ── Navbar glass ── */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(79, 37, 58, 0.08);
}

/* ── Nav link underline ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #d49a0a;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile menu animation ── */
#mobileMenu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Button ripple ── */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* ── Selection ── */
::selection {
  background: rgba(168, 85, 127, 0.15);
  color: #4f253a;
}

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid #d49a0a;
  outline-offset: 2px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
