/* Custom styles for Andy Phan Real Estate */

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

/* Mobile menu links */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e3e5;
  transition: color 0.2s;
}
.mobile-link:last-child {
  border-bottom: none;
}
.mobile-link:hover {
  color: #ff6b3f;
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Default state for reduced motion / no-JS: all visible */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f6f6f7;
}
::-webkit-scrollbar-thumb {
  background: #c4c6cb;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a5ad;
}

/* Selection color */
::selection {
  background: #ffd5c9;
  color: #1a1d23;
}

/* Select dropdown arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6570' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* Subtle hover lift for cards */
.reveal:hover {
  transform: translateY(-2px);
}
.reveal:hover {
  transition: transform 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
  }
}
