/* ===== BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #a11f37;
  color: #fff;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
  background: #ec748e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c22d4b;
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 251, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(161, 31, 55, 0.08);
}

#navbar.scrolled .font-display {
  color: #6e1e31 !important;
}

/* ===== HERO SCROLL INDICATOR ===== */
@keyframes scrollIndicator {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

.animate-scroll-indicator {
  animation: scrollIndicator 1.8s ease-in-out infinite;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-open {
  overflow: hidden;
}

#mobileMenu.menu-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  transition: opacity 0.3s ease;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .animate-scroll-indicator {
    animation: none;
  }
}

/* ===== STAGGER DELAYS ===== */
.reveal-up:nth-child(1) { transition-delay: 0.05s; }
.reveal-up:nth-child(2) { transition-delay: 0.12s; }
.reveal-up:nth-child(3) { transition-delay: 0.19s; }
.reveal-up:nth-child(4) { transition-delay: 0.26s; }
.reveal-up:nth-child(5) { transition-delay: 0.33s; }
.reveal-up:nth-child(6) { transition-delay: 0.40s; }

/* ===== ROOM CARD HOVER ===== */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* ===== BUTTON FOCUS ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #a11f37;
  outline-offset: 2px;
}

/* ===== FORM INPUTS ===== */
input::placeholder,
textarea::placeholder {
  color: #d1d5db;
}

/* ===== PRINT ===== */
@media print {
  #navbar, .reveal-up, .animate-scroll-indicator { display: none; }
  body { color: #000; background: #fff; }
}
