/* Kirkland Ranch Winery — Custom Styles */

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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: #34d4a8;
  color: #0a1628;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a1628;
}
::-webkit-scrollbar-thumb {
  background: #34d4a8;
  border-radius: 3px;
}

/* Mobile menu open state */
body.menu-open {
  overflow: hidden;
}

#mobileMenu.menu-open {
  opacity: 1;
  pointer-events: all;
}

/* Mobile menu button active state */
body.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
body.menu-open .menu-line:nth-child(2) {
  transform: rotate(-45deg) translate(0px, 0px);
}

/* Smooth image loading */
img {
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 1px solid #34d4a8;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Scroll reveal base — content is visible by default, JS adds animation */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Navbar shadow on scroll */
nav.scrolled {
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}
