/* Custom styles for Moulton Family Wines */

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

/* Selection color */
::selection {
  background-color: rgba(212, 160, 23, 0.3);
  color: #f0f3f9;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f1526;
}
::-webkit-scrollbar-thumb {
  background: #2d3d6f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4a61a8;
}

/* Navbar scroll state */
.navbar-scrolled {
  background-color: rgba(15, 21, 38, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reveal animations (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Only animate if user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile menu transitions */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* Menu toggle animation */
.menu-line {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
  width: 20px;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Wine card hover glow */
.group:hover .rounded-full {
  box-shadow: 0 0 30px rgba(212, 160, 23, 0.15);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #1a2340 inset !important;
  -webkit-text-fill-color: #f0f3f9 !important;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #d4a017;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  nav, #contact-form, button { display: none; }
  body { background: white; color: black; }
  .bg-navy-950, .bg-navy-900 { background: white !important; }
  .text-white, .text-white\/60, .text-white\/40, .text-white\/50 { color: #1a1a1a !important; }
}
