/* Custom styles for Sno Road Winery */

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

/* Ensure above-the-fold content is always visible */
body {
  opacity: 1;
}

/* Navbar transition states */
.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar-transparent .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-transparent .nav-link:hover {
  color: #5eead4;
}

.navbar-transparent .nav-text {
  color: white;
}

.navbar-scrolled .nav-link {
  color: #475569;
}

.navbar-scrolled .nav-link:hover {
  color: #0d9488;
}

.navbar-scrolled .nav-text {
  color: #1e293b;
}

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

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

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

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

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

/* Remove default focus outline for mouse users, keep for keyboard */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mobile menu link active state */
.mobile-link.active {
  background-color: #f0fdfa;
  color: #0d9488;
}
