/* Custom styles for Sand Pit café & bar website */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a1a2e;
}
::-webkit-scrollbar-thumb {
  background: #334e68;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3fc19a;
}

/* Selection color */
::selection {
  background: rgba(109, 216, 184, 0.3);
  color: #f0f4f8;
}

/* Base font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar transitions */
.nav-scrolled {
  background: rgba(10, 26, 46, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  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[data-revealed="false"] {
  opacity: 0;
  transform: translateY(30px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Mobile menu animations */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Image hover effects */
img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Card hover effects */
.rounded-3xl {
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.rounded-3xl:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Playfair Display italic adjustment */
.font-serif em {
  font-style: italic;
}
