/* ===================================
   Weinheimer Ranch - Custom Styles
   =================================== */

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

/* Custom Selection Color */
::selection {
    background-color: #C06C54;
    color: #FFFFFF;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hover\\:scale-105:hover {
        transform: none !important;
    }
    
    img {
        transition: none !important;
    }
}

/* Scroll Reveal Animations (Progressive Enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: reduce) {
    .reveal.hidden-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar Scroll State */
.navbar-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

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

/* Decorative Elements */
.section-divider {
    width: 60px;
    height: 3px;
    background-color: #C06C54;
    margin: 1.5rem 0;
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C06C54;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Card Hover Effects */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Print Styles */
@media print {
    nav,
    #mobile-menu-btn,
    .hover\\:scale-105 {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-brand-charcoal {
        background: #2C2C2C !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
