/* Custom Styles for Rock Run Creek Station */

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

body {
    /* Prevents layout shift and ensures consistent rendering */
    font-feature-settings: "cv02", "cv03", "cv04";
}

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

::-webkit-scrollbar-track {
    background: #F5F7F8;
}

::-webkit-scrollbar-thumb {
    background: #0F4C5C;
    border-radius: 5px;
}

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

/* Animation Utilities */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image Aspect Ratios */
.img-aspect-portrait {
    aspect-ratio: 3/4;
}

.img-aspect-landscape {
    aspect-ratio: 4/3;
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #0F4C5C;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

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

/* Button Hover Effects */
.btn-elegant {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-elegant::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: height 0.3s ease;
}

.btn-elegant:hover::after {
    height: 100%;
}

/* Card Hover Lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
        line-height: 1.2;
    }
}

/* Loading State for Images */
img {
    background-color: #E8F4F6;
}

/* Reduced Motion Preference */
@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;
    }
    
    .fade-in-up {
        opacity: 1;
        transform: none;
    }
}
