/* Custom styles for Rockford Hill Apartments */

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

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(162, 53, 22, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile menu transitions */
#mobile-menu {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

/* Mobile link hover */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f6c4b0;
  transition: width 0.3s ease;
}

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    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 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .group img {
    transition: none;
  }

  .animate-bounce {
    animation: none;
  }
}

/* Selection color */
::selection {
  background: #f0a07e;
  color: #6b2716;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #dc5a2e;
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: #fdf9ed;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #dc5a2e;
}
