/* Custom styles for El Barbas Restaurant & Bar */

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

/* Navbar scroll effect */
nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

nav.scrolled .text-slate-900 {
  color: #0f172a !important;
}

nav.scrolled a.text-slate-600 {
  color: #475569 !important;
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered fade-in for grid items */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
 fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }

.fade-in-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Custom selection color */
::selection {
  background: #0d9488;
  color: white;
}

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

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

/* Form input transitions */
input, select, textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* Gallery grid adjustments */
@media (min-width: 768px) {
  .grid-cols-2 > :nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
}
