/* Custom styles for Coopersville Area Real Estate */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0F1419;
}
::-webkit-scrollbar-thumb {
  background: #2F3844;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF5A3A;
}

/* Selection color */
::selection {
  background: rgba(255, 90, 58, 0.3);
  color: #fff;
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

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

/* Scroll reveal animations (below-the-fold only) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
}

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

/* Navbar scrolled state */
.nav-scrolled {
  background: rgba(15, 20, 25, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Form select 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='%238A96A5' 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;
  padding-right: 2.5rem;
}

/* Hero image hover effects */
.rounded-2xl.overflow-hidden {
  transition: transform 0.3s ease;
}

/* Coral accent line */
.coral-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #FF5A3A, #FFAA96);
  border-radius: 2px;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #FF5A3A;
  outline-offset: 2px;
}

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

/* Subtle gradient overlay for hero */
.hero-gradient {
  background: linear-gradient(135deg, rgba(15, 20, 25, 0.98) 0%, rgba(26, 32, 39, 0.9) 100%);
}

/* Testimonial card hover */
.bg-charcoal-800.rounded-2xl {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bg-charcoal-800.rounded-2xl:hover {
  transform: translateY(-4px);
}

/* Navbar link hover underline */
nav a {
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF5A3A;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Service card icon pulse on hover */
.group:hover .w-14.h-14 {
  transform: scale(1.05);
}

/* Neighborhood item hover */
.bg-charcoal-700\/50.rounded-xl {
  transition: transform 0.2s ease;
}

.bg-charcoal-700\/50.rounded-xl:hover {
  transform: translateX(4px);
}
