/* === Custom Styles for Bailey's Rustic Lakehouse === */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f2b4c;
}
::-webkit-scrollbar-thumb {
  background: #c9a84c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4b76a;
}

/* Selection color */
::selection {
  background: #c9a84c;
  color: #0f2b4c;
}

/* === Navigation === */
#navbar {
  transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
  background-color: rgba(10, 31, 53, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.nav-link {
  position: relative;
}

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

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

.nav-link:hover {
  color: #c9a84c !important;
}

/* === Mobile Menu === */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-link {
  animation: fadeDown 0.4s ease forwards;
  opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

/* === Hero Animations === */
#hero h1 {
  animation: heroFadeUp 1s ease forwards;
  opacity: 0;
}

#hero p {
  animation: heroFadeUp 1s ease 0.2s forwards;
  opacity: 0;
}

#hero a {
  animation: heroFadeUp 1s ease 0.4s forwards;
  opacity: 0;
}

#hero .flex.items-center.gap-4.mb-8 {
  animation: heroFadeUp 1s ease 0.1s forwards;
  opacity: 0;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === Section Divider === */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0;
}

.section-divider span {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: rgba(61, 50, 41, 0.15);
}

.section-divider svg {
  color: #c9a84c;
  flex-shrink: 0;
}

/* === Accommodation Cards === */
.accommodation-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.accommodation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* === Amenities Grid === */
.amenity-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.amenity-card:hover {
  transform: translateY(-2px);
}

/* === Form Inputs === */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #c9a84c !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* === Gallery Images === */
.gallery-img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-img:hover {
  transform: scale(1.1);
}

/* === Button Hover Effects === */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

/* === Image Hover === */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom:hover img {
  transform: scale(1.05);
}

/* === Gold Accent Animations === */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.gold-shimmer {
  background: linear-gradient(90deg, #c9a84c 0%, #e0c988 50%, #c9a84c 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* === Print Styles === */
@media print {
  #navbar, #mobile-menu, .reveal {
    display: none !important;
  }
  body {
    background: white !important;
    color: #3d3229 !important;
  }
}
