/* Custom styles for Cinnamon Beach Recreational */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #052e16;
}

::-webkit-scrollbar-thumb {
  background: #166534;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #15803d;
}

/* Hero background */
.hero-bg {
  background-image: linear-gradient(135deg, rgba(5, 46, 22, 0.88) 0%, rgba(20, 83, 45, 0.82) 50%, rgba(22, 101, 52, 0.75) 100%), url('https://images.pexels.com/photos/3940733/pexels-photo-3940733.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Accent line */
.accent-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #d4a574, #c99a2e);
}

/* Stat card glass effect */
.stat-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Room card hover */
.room-card:hover .room-img {
  transform: scale(1.05);
}

/* Navigation link underline effect */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #d4a574;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
  }
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-menu.open {
  max-height: 400px;
}

/* Form styles */
.contact-form input,
.contact-form textarea {
  background: rgba(254, 253, 248, 0.05);
  border: 1px solid rgba(212, 165, 116, 0.3);
  color: #fefdf8;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #d4a574;
  background: rgba(254, 253, 248, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(254, 253, 248, 0.4);
}

/* Success message */
.success-message {
  animation: fadeIn 0.5s ease forwards;
}

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