/* Custom styles for Plaza San Jeronimo Deli */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Selection color */
::selection {
  background: rgba(20, 184, 166, 0.3);
  color: #f1f5f9;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(8, 14, 26, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

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

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

/* Gold shimmer on hover for buttons */
.btn-gold:hover {
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

/* Image hover container */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Mobile menu transitions */
#mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Mobile links */
.mobile-link {
  transition: color 0.2s ease, transform 0.2s ease;
}
.mobile-link:hover {
  transform: translateY(-2px);
}

/* Map dark theme override */
.gm-style-iwt {
  filter: invert(90%) hue-rotate(180deg);
}

/* Ensure all text has proper contrast */
.text-slate-200 {
  color: #e2e8f0;
}
.text-slate-300 {
  color: #cbd5e1;
}
.text-slate-400 {
  color: #94a3b8;
}
.text-slate-500 {
  color: #64748b;
}

/* Hero asymmetric layout fix */
@media (min-width: 1024px) {
  #hero {
    align-items: center;
  }
}

/* Prevent layout shift on images */
img {
  max-width: 100%;
  height: auto;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Print styles */
@media print {
  nav, #gallery, .reveal { display: none; }
  body { background: white; color: black; }
}
