/* Custom styles for Champagne Creek Yurts */

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

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

/* Scroll reveal animations - progressive enhancement via JS */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Navbar scroll state */
nav.scrolled {
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

nav.scrolled .font-serif {
  color: #C9A84C;
}

/* Gold accent underline animation */
a:hover {
  position: relative;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0F1419;
}
::-webkit-scrollbar-thumb {
  background: #2C3E50;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C9A84C;
}

/* Selection color */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #F5E6B8;
}

/* Date input styling fix */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) saturate(3) hue-rotate(10deg);
  cursor: pointer;
}

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

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

/* Image hover parallax effect */
.aspect-square img,
.aspect-video img,
.aspect-\[4\/3\] img,
.aspect-\[3\/4\] img,
.aspect-\[4\/5\] img {
  will-change: transform;
}

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

/* Subtle gold shimmer on hero text */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
  .font-serif {
    line-height: 1.1;
  }
}
