/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf8f0; }
::-webkit-scrollbar-thumb { background: #d44061; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b82242; }

/* ── Selection ── */
::selection { background: #fce7eb; color: #5c1e2a; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Hero Animations ── */
.hero-subtitle {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.hero-title {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-desc {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

.hero-cta {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

/* ── Reveal on Scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* ── Nav ── */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #7B2D3B;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile Menu ── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-nav-link {
  animation: fadeIn 0.4s ease forwards;
  opacity: 0;
}

.mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav-link:nth-child(4) { animation-delay: 0.4s; }

/* ── Menu Lines Animation ── */
#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Buttons ── */
.btn-primary, .btn-secondary {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

/* ── Room Cards ── */
.room-card {
  position: relative;
  overflow: hidden;
}

.room-card .room-image {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card:hover .room-image {
  transform: scale(1.05);
}

.room-card .room-overlay {
  background: linear-gradient(to top, rgba(15, 12, 10, 0.5) 0%, transparent 50%);
}

/* ── Input Focus ── */
input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.15);
}

/* ── Decorative Divider ── */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 2rem 0;
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, #f3a8bb, transparent);
}

.divider-ornament svg {
  color: #d44061;
  opacity: 0.6;
}

/* ── Parallax-like subtle float ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-slow {
  animation: float 6s ease-in-out infinite;
}

/* ── Responsive Adjustments ── */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-title br {
    display: none;
  }

  .reveal {
    transform: translateY(20px);
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 70px;
  }
}
