/* ===== Custom Styles for Little Mountaineers ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #060e0b;
}
::-webkit-scrollbar-thumb {
  background: #064e3b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* Selection color */
::selection {
  background: rgba(230, 196, 110, 0.3);
  color: #fdfbf7;
}

/* ===== Scroll Reveal Animations ===== */
/* Default state: visible (no JS progressive enhancement) */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* When JS adds the hidden class, animate in */
.scroll-reveal.is-hidden {
  opacity: 0;
  transform: translateY(30px);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.is-hidden {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* ===== Navbar Glass Effect ===== */
.navbar-scrolled {
  background: rgba(3, 8, 6, 0.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

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

/* ===== Floating Card Animations ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.floating-card-1 {
  animation: float 6s ease-in-out infinite;
}
.floating-card-2 {
  animation: float 7s ease-in-out infinite 0.5s;
}
.floating-card-3 {
  animation: float 5s ease-in-out infinite 1s;
}
.floating-card-4 {
  animation: float 6.5s ease-in-out infinite 1.5s;
}

/* ===== Button Hover Glow ===== */
.btn-glow:hover {
  box-shadow: 0 0 30px rgba(212, 168, 75, 0.3);
}

/* ===== Image Hover Zoom ===== */
img {
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===== Custom Select Arrow ===== */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e6c46e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ===== Mobile Menu Transition ===== */
#mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ===== Focus Visible Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #e6c46e;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.2;
  }
}
