/* ── Base ── */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #1a0c19;
  color: #ece0ee;
}

::selection {
  background: #d4a853;
  color: #1a0c19;
}

/* ── Nav ── */
#site-header {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#site-header.scrolled {
  background: rgba(26, 12, 25, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(212, 168, 83, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #d4a853;
  transition: width 0.3s ease;
}

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

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

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

.mobile-link {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

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

.hero-title {
  animation: slideUp 0.9s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

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

.hero-cta {
  animation: slideUp 0.9s ease forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

/* ── Select styling ── */
select option {
  background: #2a1427;
  color: #ece0ee;
}

/* ── Date input ── */
input[type="date"] {
  color-scheme: dark;
}

/* ── Form focus styles ── */
input:focus,
textarea:focus,
select:focus {
  border-color: #d4a853 !important;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a0c19;
}

::-webkit-scrollbar-thumb {
  background: #3D1E3A;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5e2640;
}

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.1;
  }
}
