/* Custom styles for Boutique Realty */

/* Hero animations */
.hero-anim {
  opacity: 0;
  transform: translateY(30px);
  animation: heroIn 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.3s; }
.hero-anim:nth-child(3) { animation-delay: 0.5s; }
.hero-anim:nth-child(4) { animation-delay: 0.7s; }

@keyframes heroIn {
  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);
}

/* Staggered reveal for grid items */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* Testimonial cards */
.testimonial-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card:nth-child(1) { transition-delay: 0.05s; }
.testimonial-card:nth-child(2) { transition-delay: 0.15s; }
.testimonial-card:nth-child(3) { transition-delay: 0.25s; }

/* Neighborhood cards */
.neighborhood-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.neighborhood-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.neighborhood-card:nth-child(1) { transition-delay: 0.05s; }
.neighborhood-card:nth-child(2) { transition-delay: 0.1s; }
.neighborhood-card:nth-child(3) { transition-delay: 0.15s; }
.neighborhood-card:nth-child(4) { transition-delay: 0.2s; }

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(254, 252, 251, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

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

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

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

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

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

/* Selection color */
::selection {
  background: #fad0d9;
  color: #5c1e2b;
}

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

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

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

/* Focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Subtle hover lift for cards */
.service-card:hover,
.testimonial-card:hover {
  transform: translateY(-4px) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-anim {
    transform: translateY(20px);
  }

  @keyframes heroIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
