/* ==========================================
   NORTHWEST GRIND GRAND MOUND
   Custom Styles
   ========================================== */

/* Base & Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F5F0E8;
}
::-webkit-scrollbar-thumb {
  background: #2D5A3D;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3d6340;
}

/* Selection */
::selection {
  background: #2D5A3D;
  color: #F5F0E8;
}

/* Navbar Transition States */
#navbar.scrolled {
  background: rgba(253, 252, 250, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(45, 90, 61, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .nav-link,
#navbar.scrolled .menu-line {
  color: #1c3a27;
}

#navbar.scrolled .menu-line {
  background: #1c3a27 !important;
}

/* Mobile Menu States */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Mobile Nav Link Hover */
.mobile-nav-link {
  position: relative;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #2D5A3D;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* Scroll Line Animation */
@keyframes scroll-line {
  0% {
    height: 0;
    opacity: 0;
  }
  50% {
    height: 48px;
    opacity: 1;
  }
  100% {
    height: 48px;
    opacity: 0;
  }
}

.animate-scroll-line {
  animation: scroll-line 2s ease-in-out infinite;
}

/* Reveal Animations */
.reveal-left,
.reveal-right,
.reveal-up {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-left {
    transform: translateX(-40px);
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .reveal-right {
    transform: translateX(40px);
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .reveal-up {
    transform: translateY(40px);
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .reveal-left.visible,
  .reveal-right.visible,
  .reveal-up.visible {
    transform: none;
    opacity: 1;
  }
}

/* Form Focus States */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

/* Image Loading */
img {
  image-rendering: auto;
}

/* Print Styles */
@media print {
  #navbar,
  .animate-scroll-line {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
