/* Custom styles for 4th of July Cafe */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
  background: #8a7e72;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6b6056;
}

/* Navbar scroll effect */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

.navbar-scrolled #nav-logo-sub {
  color: #78716c;
}

/* Mobile menu animations */
.mobile-menu-open #menu-line-1 {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-open #menu-line-2 {
  opacity: 0;
}
.mobile-menu-open #menu-line-3 {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

.mobile-menu-open .mobile-link {
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

.mobile-menu-open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(6) { animation-delay: 0.35s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.reveal.hidden-reveal {
  opacity: 0;
  transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image hover effects */
img {
  transition: transform 0.7s ease;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #2d807e;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Print styles */
@media print {
  nav, .mobile-menu {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
