/* Custom styles for Shilo Farm Vacation Rental */

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FFF8F5;
}
::-webkit-scrollbar-thumb {
  background: #f9cdd5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f4a7b8;
}

/* Selection color */
::selection {
  background: #f9cdd5;
  color: #7e1d34;
}

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

/* Subtle entrance animation for hero content */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

/* Gradient animation for hero */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-gradient {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* Property card image zoom on hover */
.card-hover .relative h-64 {
  overflow: hidden;
}
.card-hover .relative h-64 img {
  transition: transform 0.5s ease;
}
.card-hover:hover .relative h-64 img {
  transform: scale(1.05);
}

/* Mobile menu animation */
.mobile-menu {
  overflow: hidden;
}

/* Prevent layout shift on image load */
img {
  image-rendering: auto;
}

/* Print styles */
@media print {
  nav, .mobile-menu, #contact-form, #form-success {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  .hero-gradient {
    background: #fce4e8 !important;
    animation: none !important;
  }
}
