/* Custom styles for Morehead Inn */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero animations - only for below-fold progressive enhancement */
.hero-title {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-description {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.hero-cta {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(18, 28, 10, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-scrolled #nav-logo {
    color: #fff !important;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3d6129;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4d7a34;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #4d7a34;
    color: #fff;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}
