/* Custom styles for Picayune Proper Bed & Breakfast */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Selection color */
::selection {
  background: #99f6e4;
  color: #134e4a;
}

/* Hero animations */
.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.hero-image {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  animation: fadeUp 0.8s ease 0.2s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Section reveal animations */
.section-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Room card hover */
.room-card {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.room-card:hover {
  transform: translateY(-6px);
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

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

/* Pulse animation for live dot */
@keyframes softPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.animate-pulse {
  animation: softPulse 2s ease-in-out infinite;
}

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

/* Parallax-like subtle movement on hero image */
@media (prefers-reduced-motion: no-preference) {
  .hero-image img {
    transition: transform 0.6s ease;
  }
}

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

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px rgba(241, 245, 249, 1) inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc;
}

/* Print styles */
@media print {
  header, footer, #contact {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
