/* Custom styles for The Dancing Bear Campground */

:root {
  --color-coral-400: #ff8f70;
  --color-coral-500: #ff6b4a;
  --color-coral-600: #f0502e;
  --color-charcoal-800: #2d323c;
  --color-charcoal-900: #1a1e26;
  --color-sage-50: #f6f7f4;
  --color-sage-100: #eef0e8;
  --color-sage-200: #dfe3d4;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f7f7f8;
}
::-webkit-scrollbar-thumb {
  background: #dcdfe6;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #babfc9;
}

/* Selection color */
::selection {
  background: #ffd5c8;
  color: #1a1e26;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #ff6b4a;
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

/* Gallery hover effect */
.grid-cols-2 .rounded-2xl {
  overflow: hidden;
}

/* Ensure images don't cause layout shift */
img {
  max-width: 100%;
  height: auto;
}

/* Smooth card hover transitions */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Active nav link */
.nav-link-active {
  color: #ff6b4a !important;
}
