/* Snowking Mountain Resort — Custom Styles */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #c8a84e;
}

/* Selection */
::selection {
    background: #c8a84e;
    color: #0a1628;
}

/* Navigation */
.nav-logo-text {
    transition: color 0.5s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #0a1628;
}

#navbar.scrolled {
    background: rgba(250, 248, 244, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: #0a1628;
}

/* Hero */
#hero {
    position: relative;
}

/* Section Dividers */
section + section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c8a84e, transparent);
    opacity: 0.3;
}

/* Cards */
.group {
    will-change: transform;
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Input Focus States */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(200, 168, 78, 0.3);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .group-hover\:scale-105 {
        transition: none;
    }

    .w-full.h-full.object-cover.group-hover\:scale-105 {
        transition: none;
    }

    .transition-all,
    .transition-colors {
        transition-duration: 0.01ms !important;
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.40s; }

.reveal-stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Gold accent line animation on hover */
a[href]:hover .text-gold-600,
a[href]:hover .text-gold-400 {
    color: #d4b960;
}

/* Button hover glow */
button:hover,
a:hover {
    filter: brightness(1.05);
}
