/* Custom styles for Twin Magnolias Bed & Breakfast */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0fdfa;
}
::-webkit-scrollbar-thumb {
  background: #99f6e4;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5eead4;
}

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

/* Mobile menu transitions */
.mobile-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

/* Fade-in animations for scroll sections */
.fade-in-section {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.navbar-scrolled .nav-link {
  color: #1e293b !important;
}

.navbar-scrolled .nav-link:hover {
  color: #0d9488 !important;
}

/* Image hover effects */
img {
  display: block;
  max-width: 100%;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .group img {
    transition: none;
  }
  .group:hover img {
    transform: none;
  }
}

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

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Date input styling */
input[type="date"] {
  color-scheme: light;
}

/* Asymmetric hero image offset on large screens */
@media (min-width: 1024px) {
  #hero .lg\\:col-span-5 {
    margin-top: 4rem;
  }
}
