/* Beaver Creek Country Club — Custom Styles */

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

body {
    font-family: 'Lato', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

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

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

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

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

/* Navbar Transition States */
.nav-scrolled #navbar {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.nav-scrolled .nav-text-white {
    color: #ffffff;
}

.nav-scrolled .nav-text-gold {
    color: #E0CE9A;
}

/* Mobile Menu */
.mobile-menu-open {
    overflow: hidden;
}

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

.mobile-menu-open .mobile-menu-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .mobile-menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .mobile-menu-line:last-child {
    width: 20px;
    transform: rotate(-45deg) translate(3px, -3px);
}

.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* 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);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .group img {
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Form Focus Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 169, 97, 0.15);
}

/* Selection */
::selection {
    background: rgba(200, 169, 97, 0.3);
    color: #0A1628;
}

/* Image Aspect Ratio Support */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Button hover glow */
button:hover,
a:hover {
    cursor: pointer;
}

/* Subtle card hover lift */
.shadow-lg {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Gold accent line animation */
.w-px.bg-gold-500 {
    transition: width 0.5s ease;
}

/* Loading state for buttons */
button:active {
    transform: scale(0.98);
}

/* Print styles */
@media print {
    nav, footer, #contact-form, #newsletter-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-navy-900, .bg-navy-800 {
        background: #f5f5f5 !important;
    }
}
