/* Custom styles for Kristen Lunden Real Estate website */

/* Smooth scroll offset for fixed navbar */
html {
  scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
  background: #d4cfc5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a89f91;
}

/* Selection color */
::selection {
  background: #c45528;
  color: #fefdfb;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c45528;
  outline-offset: 2px;
}

/* Image loading placeholder */
img {
  background-color: #e8e4dc;
}

/* Subtle pattern overlay for hero */
#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c45528' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(254, 253, 251, 0.97) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Service card hover effect */
.group:hover .group-hover\:bg-terra-600 {
  background-color: #a8441e;
}

/* Testimonial hover */
.bg-warmgray-800\/50:hover {
  background-color: rgba(46, 42, 37, 0.6);
}

/* Area card overlay transition */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Form input transitions */
input:focus,
select:focus,
textarea:focus {
  background-color: #fefdfb !important;
}

/* Button ripple effect on hover */
button[type="submit"]:hover {
  transform: translateY(-1px);
}

button[type="submit"]:active {
  transform: translateY(0);
}

/* Reduced motion - ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
