/* Custom styles for Encinas Real Estate */

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

/* Scroll reveal base - visible by default for progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Mobile menu transitions */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile link hover */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(22, 101, 52, 0.08);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0fdf4;
}
::-webkit-scrollbar-thumb {
  background: #86efac;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #22c55e;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* Image hover container */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Subtle pattern overlay for cream sections */
.bg-cream-50 {
  background-image: radial-gradient(circle at 20% 20%, rgba(220, 252, 231, 0.4) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(187, 247, 208, 0.3) 0%, transparent 50%);
}

/* Map filter override for dark theme */
section:has(> iframe) iframe {
  filter: saturate(0.6) brightness(0.85) contrast(1.1);
}
