/* === Custom Styles for Rookery Rock Winery === */

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

/* === Navbar transitions === */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
  position: relative;
}

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

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

/* === Floating animations === */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.floating-card {
  animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -1.3s;
  animation-duration: 5s;
}

.floating-card:nth-child(3) {
  animation-delay: -2.6s;
  animation-duration: 4.5s;
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

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

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

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

/* === Wine card hover === */
.wine-card {
  perspective: 1000px;
}

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

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

.mobile-nav-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #f0fdfa;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #5eead4;
}

/* === Selection color === */
::selection {
  background: #99f6e4;
  color: #042f2e;
}

/* === Form input focus styles === */
input:focus,
textarea:focus {
  border-color: rgba(13, 148, 136, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1) !important;
}

/* === Date input styling === */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) saturate(3) hue-rotate(130deg);
  cursor: pointer;
}

/* === Print styles === */
@media print {
  #navbar,
  .floating-card,
  .floating-element {
    display: none;
  }
}
