/* === CUSTOM STYLES === */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Nav transition */
#site-nav.scrolled {
  background: rgba(254, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Nav links underline animation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C06C4B;
  transition: width 0.25s ease;
  border-radius: 1px;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-link {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.2s ease, color 0.2s ease;
}
.mobile-link:hover {
  padding-left: 8px;
}

/* Marquee animation */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 25s linear infinite;
}

/* Scroll reveal (below fold only, progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Reduced motion - ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
  .animate-marquee {
    animation: none;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf6ec;
}
::-webkit-scrollbar-thumb {
  background: #d4a855;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b88f3e;
}

/* Selection color */
::selection {
  background: #f4c0b5;
  color: #5e2f25;
}
