/* Custom styles beyond Tailwind */

html {
  scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
  background: #B87333;
  border-radius: 5px;
}

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

/* Selection color */
::selection {
  background: #B87333;
  color: #FDF8F3;
}

/* Form input date styling */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
  cursor: pointer;
}

/* Smooth animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Subtle hover lift for cards */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(61, 43, 31, 0.15);
}

/* Nav link underline animation */
.nav-link {
  position: relative;
}

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

.nav-link:hover::after {
  width: 100%;
}

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

/* Responsive typography scaling */
@media (max-width: 640px) {
  h1 {
    letter-spacing: -0.02em;
  }
}

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