/* ============================================
   LOST LAKE CAMPGROUND — Custom Styles
   ============================================ */

/* Base */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: rgba(22, 101, 52, 0.2);
  color: #14532d;
}

/* ============================================
   HERO ANIMATIONS (above the fold — always visible)
   ============================================ */
.hero-subtitle {
  animation: fadeDown 0.8s ease-out both;
  animation-delay: 0.2s;
}

.hero-title {
  animation: fadeUp 1s ease-out both;
  animation-delay: 0.4s;
}

.hero-desc {
  animation: fadeUp 1s ease-out both;
  animation-delay: 0.7s;
}

.hero-cta {
  animation: fadeUp 1s ease-out both;
  animation-delay: 0.9s;
}

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

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

/* ============================================
   SCROLL REVEAL ANIMATIONS
   (below the fold — progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  .reveal-dot {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed,
  .reveal-dot.revealed {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(254, 253, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(20, 83, 45, 0.08);
}

#navbar.scrolled .font-serif {
  color: #14532d !important;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-link {
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: #16a34a;
}

/* ============================================
   SMOOTH SCROLL OFFSET (for fixed nav)
   ============================================ */
section[id] {
  scroll-margin-top: 80px;
}

/* ============================================
   IMAGE HOVER TRANSITIONS
   ============================================ */
img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   FORM STYLES
   ============================================ */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* ============================================
   SUBTLE PATTERN BACKGROUND (for cream sections)
   ============================================ */
.bg-cream-50 {
  background-image: radial-gradient(ellipse at 20% 50%, rgba(22, 101, 52, 0.03) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 20%, rgba(22, 101, 52, 0.02) 0%, transparent 50%);
}

/* ============================================
   BUTTON HOVER GLOW
   ============================================ */
button[type="submit"]:hover {
  transform: translateY(-1px);
}

button[type="submit"]:active {
  transform: translateY(0);
}

/* ============================================
   MOBILE MENU ANIMATION
   ============================================ */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-title br {
    display: none;
  }

  .hero-title::after {
    content: " sky that";
    display: block;
    font-style: italic;
    font-weight: 400;
    color: #6ee7b7;
  }
}
