/* === Custom Styles for Coal Mine Tavern === */

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

/* Base transitions */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Navbar scroll state */
.nav-link {
  position: relative;
}

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

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

/* Mobile menu links */
.mobile-link {
  position: relative;
  padding-left: 0;
}

.mobile-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: width 0.2s ease;
}

.mobile-link:hover::before {
  width: 100%;
}

/* Scroll reveal animations */
.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[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

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

/* Hero background */
.hero-bg {
  will-change: transform;
}

.hero-overlay {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Image hover zoom container */
.aspect-\[4\/3\] img,
.aspect-square img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

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

/* Selection */
::selection {
  background: #d1fae5;
  color: #064e3b;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  img {
    transition: none;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.1;
  }
}

/* Large desktop */
@media (min-width: 1024px) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
}
