/* ── Base & Utilities ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: #c9a227;
  color: #0a1628;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Navigation ─────────────────────────────────────────────── */
#nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

#nav.scrolled {
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

.nav-link-text {
  letter-spacing: 0.02em;
}

/* ── Mobile Menu ────────────────────────────────────────────── */
.mobile-link {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ── Reveal Animations ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ── Room Cards ─────────────────────────────────────────────── */
.room-card {
  padding: 16px 0;
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
  transition: padding-left 0.3s ease;
}

.room-card:first-child {
  border-top: 1px solid rgba(10, 22, 40, 0.08);
}

.room-card:hover {
  padding-left: 8px;
}

/* ── Scroll Gallery ─────────────────────────────────────────── */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll {
  animation: scroll 40s linear infinite;
}

.pause-hover:hover {
  animation-play-state: paused;
}

/* ── Form Styles ────────────────────────────────────────────── */
select option {
  background: #0a1628;
  color: #fff;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767px) {
  .font-serif {
    word-spacing: -0.02em;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .animate-scroll {
    animation-duration: 50s;
  }
}

@media (min-width: 1024px) {
  .animate-scroll {
    animation-duration: 35s;
  }
}

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

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
}
