/* Custom styles for Dairy Stop */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

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

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

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

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 2px 20px rgba(26, 39, 68, 0.1);
  backdrop-filter: blur(10px);
}

.navbar-scrolled .font-serif {
  color: #1a2744 !important;
}

.navbar-scrolled a:not(.bg-gold-500) {
  color: #1a2744 !important;
}

/* Mobile menu transitions */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

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

.hover-lift:hover {
  transform: translateY(-4px);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #2d5191;
}

/* Selection color */
::selection {
  background: #d4a017;
  color: #1a2744;
}
