/* Custom styles for Countryside Inn & Tea House */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #064e3b;
}
::-webkit-scrollbar-thumb {
  background: #059669;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 78, 59, 0.1);
}

#navbar.scrolled .font-display {
  color: #064e3b !important;
}

#navbar.scrolled a:not(.bg-emerald-600):not(.bg-emerald-500) {
  color: #065f46 !important;
}

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

/* Floating card animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Apply float to floating cards */
.absolute.-top-6.-right-6 {
  animation: float 4s ease-in-out infinite;
}

.absolute.-bottom-4.-left-8 {
  animation: float-delayed 5s ease-in-out infinite;
}

.absolute.top-1\/2.-right-10 {
  animation: float 6s ease-in-out infinite;
}

/* Geometric shape animations */
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

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

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* Selection color */
::selection {
  background: #059669;
  color: #fefce8;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
