/* Custom styles for The Valley at Tanner Estates */

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

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

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

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

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

/* Navbar scroll effect */
.navbar-scrolled {
  background: rgba(253, 248, 243, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Subtle hover animations */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* Animation for mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  nav,
  #contact-form,
  button {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}

/* Additional responsive adjustments */
@media (max-width: 640px) {
  .font-display {
    font-size: 2rem;
    line-height: 1.2;
  }
}

/* Ensure all text has proper contrast */
.text-stone-800 {
  color: #1c1917;
}

.text-stone-600 {
  color: #44403c;
}

.text-stone-500 {
  color: #57534e;
}

/* Card hover effects */
.bg-stone-50 {
  background-color: #fafaf9;
}

/* Gradient backgrounds */
.bg-gradient-to-br.from-terracotta-600 {
  background-image: linear-gradient(135deg, #C65838 0%, #8A3827 100%);
}

.bg-gradient-to-b.from-cream {
  background-image: linear-gradient(to bottom, #FDF8F3 0%, #ffffff 100%);
}
