/* === Custom Styles for Snow Summit === */

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

/* Scroll reveal base - content is visible by default, JS adds animation */
.scroll-reveal {
  /* Default: fully visible, no animation */
  opacity: 1;
  transform: none;
}

/* Animated state - applied by JS only when prefers-reduced-motion is not set */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.revealed {
    animation: revealIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
}

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

/* Hero tag animation */
@media (prefers-reduced-motion: no-preference) {
  .hero-tag {
    animation: tagIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
  }
}

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

/* Navbar scroll state */
.navbar-scrolled {
  background-color: rgba(253, 251, 248, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(180, 160, 144, 0.2);
}

/* Mobile menu transitions */
#mobile-menu {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobile-menu.open {
  transform: translateX(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f7f2ea;
}
::-webkit-scrollbar-thumb {
  background: #d4b594;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b85c38;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #b85c38;
  outline-offset: 2px;
}

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

/* Subtle image hover glow */
.group:hover img {
  filter: brightness(1.03);
}

/* Print styles */
@media print {
  nav, #contact, footer { display: none; }
  body { color: #1a1818; background: white; }
  section { page-break-inside: avoid; }
}
